09-18-2012 08:32 PM
Hello I am new to LabVIEW and I am only about to begin my college career. SO I have LabVIEW and a USB 6353 DAta Acqusition device.
WHat I want to do is have a digital input feed into a digital output(which I already did). Now I want to compare the 8-bit digital input(using the DAQ assistant) with a numeric constant of my choosing. I wish to put these 2 values into an "equal" comparator, and if the comparator is true, the LED lights up.
I have put the data through an "Unbundle by name" which gives me a long 32bit integer. But if I take this out when I get a 1-D Digital waveform. How can I convert a long or digital waveform into a number/boolean?
My other thing I am trying to compare to(the numeric constant) is type boolean, and not a number for some reason. Help?
09-18-2012 08:49 PM
Instead of long descriptions show us your code.
The result of a comparison is a boolean, what else did you expect?
09-18-2012 09:05 PM - edited 09-18-2012 09:06 PM
Nono what I'm saying is that my numeric constant that I am feeding into my equal comparison for some reason is a boolean and not a number.
Basically I have an equal comparator. The source is a long 32-bit integer and the sink is my numeric constant(which for some reason is read as a boolean).
Also how do I show my code from LabVIEW onto this website?
09-18-2012 10:25 PM
A constant can never be a sink. It can only be a source of data.
It sounds like you have things wired up wrong. If you post your VI like Altenbach asked, we can see what is wrong and tell you how to fix it.
09-18-2012 10:40 PM
The "equal" function has two inputs and one boolean output. The two values to be compared are wired to the two inputs.