XControl:Abilities:Init Ability VI: Difference between revisions
Appearance
mNo edit summary |
|||
| Line 8: | Line 8: | ||
Besides upgrades it gives the option to have seperate default values for controls and indicators. | 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 [http://community.ni.com/examples/scrolling-led-xcontrol rolling LED display] where this is used to force the drop of an indicator instead of the standard control. | * 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 [http://community.ni.com/examples/scrolling-led-xcontrol rolling LED display] where this is used to force the drop of an indicator instead of the standard control. | ||
* Since the [[XControl:Abilities:Facade_Ability_VI#Display_State_Change|Display state event]] is triggered by the Init VI this can be used for messaging. | * Since the [[XControl:Abilities:Facade_Ability_VI#Display_State_Change|Display state event]] is triggered by the Init VI this can be used for messaging. | ||
Revision as of 19:15, 28 July 2007
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.