Jump to content

Boolean from voltage


rhoward99

Recommended Posts

Posted

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?

Thanks!

Rick

Posted

Sure that works.

If I'm not misinterpreting what you're saying, you could just wire a >0 comparison with the numeric input and the boolean output to your LED. Or <0 if the logic was the other way around.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.