To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI demonstrates how to allow the user to programmatically alter the Boolean Text within a Cluster of Booleans using two different approaches
Description
This VI uses two approaches to change the Boolean Text of the Booleans within a Cluster. The first is to reference each Boolean in the Cluster individually and use Property Nodes to modify the "Boolean Text. Text" property. The second approach is to reference the Cluster and use a Property Node to access the Controls within the Cluster as an Array. Each item of the Array can then be specified as a Boolean with the "To More Specific Class" function and the "Boolean Text. Text" property can then be modified with a Property Node, as in the previous case.
Furthermore, in each of these cases, the Boolean Text is not specific to the "ON" or "OFF" state. This is ensured when Right Clicking each Boolean in the Front Panel and selecting Properties. In the Appearance tab, under Show Boolean Text, the Multiple strings box is unchecked. Checking this box allows for different Boolean Text based on if the Boolean is set to True or False.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.