LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView grabs all available serial ports

I'm using a VI that communicates via COM1and the serial VIs. Within this VI I'm calling an EXE-program that communicates to another device via COM2. But every time the EXE programs starts I get the message that COM2 is occupied. If I start it without the VI then the program can communicate. It seems that LabView grabs all available ports even if only one port is used in a VI. Does anybody know a solution?
0 Kudos
Message 1 of 3
(2,699 Views)
Are you using the older serial VIs or the new VISA serial VIs? If you are using the older ones, then you may want to try out the newer VISA based VIs. They probably won't suffer from the same problem.

Pete
0 Kudos
Message 2 of 3
(2,699 Views)
CK, you may want to do this. I wrote a VI (using the VISA serial VIs) which accesses both serial ports (COM1 and COM2) and it worked just fine. I did not receive any errors from either line of communication. I was successfully able to write and read from both ports in the same VI.
J.R. Allen
0 Kudos
Message 3 of 3
(2,699 Views)