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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

close the vi with vi server

Is there a method to close a vi that's started with vi server?

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

Well there is always the Abort VI Invoke method that can be called. But, that's not the best way. How would you usually close that VI? Is there a stop button? You can access that by get a list of all controls of the VI.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 3
(2,007 Views)

You can close the reference and it'll be removed from memory IF there are no other demands on it.  Read the help file on Close Reference Function for details.  Like the abort function this acts somewhat like the stop sign so you need to be careful with it.  Other options are queues, notifiers, global variables, functional globals, shared variables.

 


--Using LV8.2, 8.6, 2009, 2012--
0 Kudos
Message 3 of 3
(1,992 Views)