Example Programs

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean to Enable_Disable

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

Comments
Member larall
Member

gives type error???

Member Mark.Ridgley Member
Member

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