LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

COM Port Showing up Under "ASRL" values?

Hello,

 

I have a device when I turn it on it gets established to a COM port. In LabVIEW I connect the COM port and do some commands then close it.

 

I then try to connect to this device again but it is now showing up with 2 ASRL values but they are associated with the same COM port? So I cannot connect to the device under the original COM port, it now has to be this new one that is still technically the same COM port.

 

How do I make it so I am not getting these two separate COM ports?

0 Kudos
Message 1 of 4
(292 Views)

Anyone?

0 Kudos
Message 2 of 4
(246 Views)

@LearningLabVIEW wrote:

Hello,

 

I have a device when I turn it on it gets established to a COM port. In LabVIEW I connect the COM port and do some commands then close it.

 

I then try to connect to this device again but it is now showing up with 2 ASRL values but they are associated with the same COM port? So I cannot connect to the device under the original COM port, it now has to be this new one that is still technically the same COM port.

 

How do I make it so I am not getting these two separate COM ports?


The only way this happens is if the COM port failed to close the first time.  In order to get more specific, we need to see some code.

 

Edit: I didn't realize the included picture was a picture of your code.  (It is NOT the same thing as real code.)  Anyway, your code is sufficiently simple enough for me to say that you need to close your COM port after the loop.  Your code could be optimized.  It's very clunky.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 4
(233 Views)

@LearningLabVIEW wrote:

Anyone?


Stop changing the USB port that you connect through. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(213 Views)