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.

Forum Italiano sui Prodotti NI

annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Labview - differenza fra local variable e property node value?

Risolto!
Vai alla soluzione

Ciao,

qualcuno sa spiegarmi quale sia la differenza fra una local variable e un property node value? In quali casi si usa una piuttosto che l'altro?

Funzionalmente mi sembrano la stessa cosa; qual è il loro corretto utilizzo?

 

Grazie,

Giuseppe

0 Kudos
Messaggio 1 di 2
1.220Visualizzazioni
Soluzione
Accettato da autore argomento sepp974

Hi sepp974

If possible, you always want to pass data to/from your front panel controls/indicators with wires.  If this won't suffice (parallel loops, e.g.), then you will want to use locals.  Try to avoid using the "Value" property unless you must write to your controls/indicators in a subVI.  The "Value" property is very slow compared to locals due to threading issues associated with property nodes.

 

For more information go through the link below.

Control/Indicator, Local Variable, and Value Property Node Differences - NI

 

Regards)

0 Kudos
Messaggio 2 di 2
1.168Visualizzazioni