Example Code

Boolean to Enable_Disable

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
The Boolean to Enable_Disable VI converts a Boolean FALSE or TRUE value to an enumerated type with a value of Enabled (0) or Disabled and Grayed Out (2), respectively.

 

Description

The Boolean to Enable_Disable VI converts a Boolean FALSE or TRUE value to an enumerated type with a value of Enabled (0) or Disabled and Grayed Out (2), respectively. The Boolean to Enable_Disable VI provides space-saving attribute control within your applications.

 

The Boolean to Enable_Disable VI outputs an enumerated type (Enabled (0) or Disabled and Grayed Out (2)), allowing you to easily see the state passed to your property nodes when using probes or execution highlighting while running your VI.

 

Below is an image that contrasts typical attribute control with the space-saving attribute control provided by the Boolean to Enable_Disable VI.

 

ATTRIBUTE CONTROL_UPLOAD_256COLORS.bmp


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the program 
  2. Push "Grayed?" button and see the behavior

Additional Information or References

VI Block Diagram

 Boolean to Enable_Disable LV_2012_NI_Verified.png

Developed by

 

Mark Ridgley

Mark.Ridgley_LabVIEW.Developer@comcast.net

 

**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.

Comments
larall
Member
Member
on

gives type error???

Mark.Ridgley
Member Member
Member
on

larall,

Thanks for taking the time to notify me of the issue with this code.

I have updated the code and reposted it with File_Added dates of 2012-11-08.

Mark Ridgley