From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to break serial resource from one object to allow another object to utilize.

My labview application has one sub VI running which takes control of COMport 1, then I want to break that connection and allow another sub VI to take COM1, but the first app will not give up the port?
0 Kudos
Message 1 of 2
(2,686 Views)
Hmm. What version of LabVIEW are you using? What are you using to "take control of COMport 1"? Are you using VISA? Some sort of DLL? An ActiveX object?

The most common way of accessing the serial port from LabVIEW is to use VISA. In general, different parts of your VIs can reuse the same VISA session, so this shouldn't be a problem. Even if it is, you can use "VISA Close" to close one session, and then open it again in another part of your application.

Brian
0 Kudos
Message 2 of 2
(2,686 Views)