ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RefNum VIServer

Hi All !
 
I created different vi:
Start : open a vi reference, open the Front Panel and start the vi. (return a RefNum).
SetValue :  set a value of an indicator on the front panel using the refnum returned by the start.vi
GetValue : get a value of a control in the front panel using a refnum returned by the start.vi
Close : close the reference RefNum.
 
All these function are integrated in a dll and will be called from a VB . NET software.
 
My problem is the following: when i call the start.vi severeal times it always return me a different RefNum. In the start vi I don't close the Reference because i need this refNum in the other functions i.e. Setvalue and getvalue. I read different posts and it seems that you always need to close the reference you opened before. But when i call the start vi severeal times, the memory size does not increase, and if i run the close.vi with the last refnum it close the vi properly (i guess).
 
My questions are : If i open lot of vi references (always on the same vi) does it means that severeal instances of this vi are created ? How can i close all instances opened ?   
0 Kudos
Message 1 of 2
(2,604 Views)
 

Bonjour,

Je pense que ce document peut vous aider

Can I Open Multiple References to the Same VI?

http://digital.ni.com/public.nsf/websearch/FB2F12F136E709F0862565BC00743E7C?OpenDocument 

Cordialement

Alexandre D

0 Kudos
Message 2 of 2
(2,578 Views)