XControl:Abilities

From LabVIEW Wiki
Jump to: navigation, search

Contents

Abilities

Abilities are LabVIEW files (mainly controls and VIs) that are needed of the XControl, and form the heart of the XControl

XControl abilities
Ability Function Called if/when LabVIEW file type Optional?

Init

To initialize memory, convert from previous version, load data from a previous session
  • The first time an XControl is added to a VI
  • An XControl is upgraded
  • A VI with an XControl is opened
Instrument (VI) No

Data

Interface to the calling VI NA Control (ctl) No

State

Contains local data for the XControl NA Control (ctl) No

Facade

Contains the code running when the XControl is active Every time an event inside the Facade VI is triggered Instrument (VI) No

Uninit

To close items allocated in Init The XControl is unloaded from memory Instrument (VI) Yes

Convert state for save

Change the data that is saved inside a VI The VI containing the XControl is saved Instrument (VI) Yes