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 = "COM"+String(com_port) work very well
ELSE
portid = "\\.\"+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.
This is the code that I use to assign the corresponding port
IF com_port <= 9 THEN
portid = "COM"+String(com_port) work very well
ELSE
portid = "\\.\"+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.