Controlling Panel Objects Programmatically
- Updated2023-02-17
- 2 minute(s) read
Controlling Panel Objects Programmatically
Control a panel object, such as a control, indicator, or the panel itself, by creating a control reference to the object. Control references are either strictly typed or general. Use control references with the Panel Manipulation nodes to control panel objects programmatically.
Strictly Typed Control References
Strictly typed control references include data type information and accept only references of the same data type. For example, if a subVI accepts a strictly typed control reference that contains a 32-bit integer data type, you can wire only a reference that also contains a 32-bit integer data type to the subVI.
- Place a control or indicator on the panel.
- Right-click a panel object and select Create reference.
- On the diagram, place the Static Control Reference of the panel object from the Unplaced Items tray and right-click the reference to create a control, indicator, or constant.
General Control References
General control references are flexible in the type of data they accept. For example, if a subVI accepts a general slide reference, you can wire a reference to a 32-bit integer slide, single-precision slide, or a cluster of 32-bit integer slides to the slide reference terminal of the subVI.
Reference does not include value data type
- Place a Control Reference on the panel.
- On the diagram, place the Control Reference from the Unplaced Items tray and click the Select reference type button next to the Reference type option on the Item tab to select a type.