LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize Controls/Indicators: Invoke node V.S Local variables. Which is faster ?

Solved!
Go to solution

Hi,

 

I am relatively new to Labview. I would like to initialise my string control (i.e. input given by the user) to null since I am using this value for comparison later on. In a nutshell, I am implementing a password protected menu.

 

Thanks

0 Kudos
Message 11 of 12
(1,008 Views)

Local Variables are faster than property nodes, (and I would also assume invoke nodes.)

 

However, for initializing controls at the beginning of a program, the time difference would be unnoticeable to a user unless you were dealing with thousands of controls.

 

Using property nodes could give you benefits in that they provide an error in and out that would allow you to sequence the execution of the nodes.  You could also use the nodes without them implicitly being linked to a control.  Then you could use an array of control references fed to the node in a For Loop to minimize the amount of block diagram real estate is used to initialize the controls.

0 Kudos
Message 12 of 12
(1,003 Views)