05-30-2014 05:59 PM
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,
05-30-2014 07:31 PM
06-02-2014 06:25 AM
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.
06-02-2014 12:55 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord