XControl:Abilities:Init Ability VI
From LabVIEW Wiki
The Init ability is used to initialize an instance/run of an XControl. It allows for converting from an older version of the XControl to maintain data-persistance. For this function the version numbering of the XControl is used. Besides upgrades it gives the option to have seperate default values for controls and indicators.
Init VI tricks
- Unfortunately there is no way to detect why the Init VI was called (drop or load from disk). One way can be using a special flag-value inside the State value as shown by Stephen Mercer of National Instruments in his rolling LED display where this is used to force the drop of an indicator instead of the standard control.
- Although it is not fool-proof an initial drop is indicated by a Previous version number of 0.0.0.0
- Since the Display state event is triggered by the Init VI this can be used for messaging.