Jump to content

Boolean from voltage


Recommended Posts

I am controlling a valve which has a limit switch that supplies 2.5 volts when it is open and -2.5 volts when it is closed. I would like to convert this voltage value to a boolean for easy input to an LED.

Being new to LabVIEW, I'm not sure if there is a built-in way to do this. I don't have an DIO's available, so I am reading the value through an analog terminal.

Currently, I am using a compare node and setting the value to "T" if > 1 and "F" if < 1.

Is there a better way?



Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.