LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW convert question

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?

0 Kudos
Message 1 of 5
(2,673 Views)

Instead of long descriptions show us your code.

The result of a comparison is a boolean, what else did you expect?

0 Kudos
Message 2 of 5
(2,669 Views)

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?

0 Kudos
Message 3 of 5
(2,665 Views)

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.

0 Kudos
Message 4 of 5
(2,647 Views)

The "equal" function has two inputs and one boolean output. The two values to be compared are wired to the two inputs.

 

 

 

0 Kudos
Message 5 of 5
(2,643 Views)