LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Binary Indicator for Digital Output Device

Solved!
Go to solution

This probably simple question to most of people but there is always a first time to do a new thing/thing that we never have done.

 

I have NI 9472 which is a digital sourcing device, I have no problem to control it using LABView to output the result (line 00000000).  I also would like to have some indication on the computer screen using LED array.  I am able to create an binary array indicator but fail to connect the decimal input to the binary array.

 

 

Please help/provide some hints, it is appreciated.

 

Untitled.png

0 Kudos
Message 1 of 11
(4,526 Views)
Solution
Accepted by topic author muahang1234

Number to Boolean Array in the Boolean palette.

0 Kudos
Message 2 of 11
(4,512 Views)

Thank you very much!!! Just an additional question - how can I reverse the binary indicator - the MSB is now at the end. I tried "reverse 1-D Array" but still the same.

0 Kudos
Message 3 of 11
(4,506 Views)

You use reverse 1-D array.  There is no way it's the same unless that happens to be your bit pattern.  Post an example.

0 Kudos
Message 4 of 11
(4,497 Views)

Unless I covert to U8 then it works but I lose 1bitUntitled.png

0 Kudos
Message 5 of 11
(4,494 Views)
Your understanding of LSB and MSB are backwards. The LSB is on the left. Why don't you simply use a numeric indicator set for binary display? Otherwise, someone who actually understands how an array is displayed, is going think something is wrong.
0 Kudos
Message 6 of 11
(4,485 Views)

How do you figure you are losing a bit?  Your original screenshot showed 8 LED's.  Converting to a U8 gives you an 8-bit number.  I don't know why you are starting with a U32 array.

0 Kudos
Message 7 of 11
(4,482 Views)

oh - I missed count the LEDsSmiley Embarassed

0 Kudos
Message 8 of 11
(4,477 Views)

I'm with Dennis.  Just use a numeric indicator.  Set the representation to U8.  Right-click on it and select Visible->Radix.  Right-click again and choose Display Format.  Choose the Advanced editing mode and put in %08b.  The result will give you an indicator like this.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 11
(4,459 Views)

Thank you very much.  It is not how to present the data to myself but how to have a meaning full indication to user. 

 

I really appreciate all the help

0 Kudos
Message 10 of 11
(4,453 Views)