LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying output data to a DAQ

Hi, I'm writing data (8 bits) to a DAQ, but at the moment it's in a unlikeable format. I need to write individual bits as in binary, but can only work out how to do this in decimal, e.g 127 instead of the preferred 0111111. I would also like to arrange this in a bank of 8 toggle switchs, where on represents a 1, and off a 0. Does any one have any ideas on how to accomplish this?
 
many thanks, tom
0 Kudos
Message 1 of 2
(2,406 Views)
Your numeric display is just a matter of formatting. As long as the representation of the number is an integer, you just have to right click on it and select Format & Precision and change it to binary (or hex or octal). You can use Number to Boolean Array to convert the number to an array of toggel switches. This is on the Boolean palette. There is also the reverse function called Numeric Array to Number.
0 Kudos
Message 2 of 2
(2,404 Views)