09-13-2005 01:11 AM
09-13-2005 03:35 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-13-2005
08:15 AM
- last edited on
11-26-2025
11:51 AM
by
Content Cleaner
09-13-2005 12:55 PM
Initializing using a property node is useful when you wish to set a value of a control in a subvi. I have done this where an initialize subvi takes the references to some controls on a GUI main panel and sets their values depending on a state of the system. Although using locals are more efficient than property nodes, the use of a subvi makes the code very clean looking. The issue with reinitialize to default is that the default value is fixed and initial values (such as user preferences, last run values ...) can change with time. Yes there is a performance issue, but initialize functions usually are not too concerned with milliseconds. If this is for DAQ systems or real-time then locals are the way to go.
Paul
09-13-2005 12:59 PM
One other useful reason for writing a value to a control through a property node is when the control has a value change event that you want to file, you can use the value(signal) node. Here you can update the value and signal the value change event, very useful in GUI event systems which require a value to be changed from both a user event and a programatic event.
Paul