LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean indicator on quare wave generator

Newbie here....    I have a square wave generator I am using to control a device using the DAQ with a NI-6008 module.  Works fine.  All very low freq. stuff like .25Hz   I want to connect a boolean indicator (LED) to the output of the square wave generator.  Sounds simple but I can't figure out how to get it to work.   what do you have to do to convert the output signal from the square wave to boolean? (0-5v amplitude).

 

Thanks,

 

 

0 Kudos
Message 1 of 4
(3,261 Views)
Where's your code? Are you using an analog or digital output? Since you can only write a single point at a time, it's simply a matter of converting the scalar to a Boolean. My guess is you are using an analog output where you could just compare the setpoint to a threshold.
0 Kudos
Message 2 of 4
(3,245 Views)

Code attached.   I just included the piece that I need help with.   How to get the boolean indicator to show on/off for the square wave supplied. 

 

 

0 Kudos
Message 3 of 4
(3,197 Views)

The output of that VI is an array of doubles.  You can create a threshold and then display an array of booleans using a function like Greater Than on the comparision palette.  This will show all values the boolean will be.  Your boolean on the front panel right now is a scalar, showing just one value of the boolean which isn't very useful especially if the value will change quickly like say a thousand times a second.  Your computer monitor doesn't update that fast, and Windows won't redraw your window that fast so it doesn't make sense to try to display one value.

0 Kudos
Message 4 of 4
(3,181 Views)