LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot open com port

Hi all,

 

maybe not entirely sure if this is a labview question, but i was using labview when it happened.  I am using labview to open and run a batch file using a COM connection and an FTDI RS232 to USB.  Now i believe that portion of the code runs smoothly, ive tested it out and it worked at one point.  After using an instr property node to check if port is open, which i now know cant be used on non ni devices anyways, it will not open to run the batch file.  I have run it from command prompt and i get a communcation port cant be open error.  Now i moved one of these devices from  COM16 to COM2 and it works perfectly now, but the other one wont work at all and why should i have to change port numbers? any tips or troubleshooting advice?



-Matt
0 Kudos
Message 1 of 4
(20,370 Views)

Presuming you are using Windows - there are a number of quirks with virtual com ports with USB. It is quite possible for said ports to effectively get "locked up" and unusable until the PC is rebooted. I've never been able to isolate the series of events that causes this.

0 Kudos
Message 2 of 4
(20,362 Views)

So this is quite bizzare, because i have restarted the computer twice now and i can still use the port in tera term.  I even uninstalled the port and reinstalled it.



-Matt
0 Kudos
Message 3 of 4
(20,353 Views)

Just in case anyone out there runs into the same problem, i followed this link here, uninstalled all com ports, then reinstalled com ports and is now functioning properly. But it seems that my port 18 which was not working before is still not working.

 

http://theitbros.com/how-to-delete-com-ports-in-use/

 

 



-Matt
0 Kudos
Message 4 of 4
(20,334 Views)