Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial Port configuration

Status
Not open for further replies.

jsoltero

Programmer
Joined
May 4, 2001
Messages
3
Location
US
I'm using an API WIN to control the serial port, but I can't send or read information when the port is bigger then 9.


This is the code that I use to assign the corresponding port

IF com_port <= 9 THEN
portid = &quot;COM&quot;+String(com_port) work very well
ELSE
portid = &quot;\\.\&quot;+String(com_port) Not work.
END IF

Can you help me, how can I do to configurate ports bigger than 9, like 10, 11, 12, ...20... ect.
 
Try referencing the port as a hex number. So port 10 = A, port 11 = B, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top