Jump to content

XControl:Abilities:Init Ability VI

From LabVIEW Wiki
Revision as of 19:21, 28 July 2007 by Tcplomp (talk | contribs)

Init Ability VI

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.
  • Since the Display state event is triggered by the Init VI this can be used for messaging.