Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I can I unlock the com port?

 

 

Due to some mistake in my program (and aborting it in the middle), I'm now in a situation where the com port is busy.

 

I closed all the programs: TestStand, LabView and it's still busy

 

I look in the Windows Task Manager, and I see a LabVIEW.exe process still running.  I tried to end this process, but my request was denied.

I happens quite a lot and I end up resetting the PC. 

 

Is there any way to release the com port from this situation when it happens again?  Any tool from windows management?

 

Thanks

Rafi

 

0 Kudos
Message 1 of 2
(3,230 Views)

Hello Rafi,

 

You can release the COM port by writing a simple LabVIEW vi.

This vi should contain a VISA Close.vi and you'll need to wire in the COM port as the input.

 

Let us know how this goes.

Thanks 

Christian A
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(3,210 Views)