LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a sub-vi allways (not only the first time) with default vaules

Dear colleagues,
 
I search for an easy way to open a sub-vi always (not only the first time)  with the default values, while the main-vi (which calls the sub-vi) is running wtihout interruption.
 
Remark:
 
I found a function (in ActiveX) called 'ReinitializeAllToDefault', but I did not manage to run it successful as I don't know how to apply this funcion.
 
 
 
Thank you very much for your help
 
 
Matthias
0 Kudos
Message 1 of 2
(1,941 Views)
Method ReinitializeAllToDefault (it's by VI Server, not ActiveX) can really help you. You apply it simply by pasting an Invoke Node and selecting this method: when the LV engine reaches this node, it initializes all controls.
The only trick is to call this method at the very beginning of the subvi code. Generally this is only necessary when your vi
immediately starts using control's values in calculations, while it's only recommended if the vi does nothing until it gets some user input.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 2
(1,934 Views)