02-28-2013 08:29 PM
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.
Solved! Go to Solution.
02-28-2013 08:55 PM
Number to Boolean Array in the Boolean palette.
02-28-2013 09:10 PM - edited 02-28-2013 09:14 PM
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.
02-28-2013 09:28 PM
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.
02-28-2013 09:41 PM
Unless I covert to U8 then it works but I lose 1bit
02-28-2013 10:02 PM
02-28-2013 10:08 PM
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.
02-28-2013 10:34 PM
oh - I missed count the LEDs
03-01-2013 04:47 AM - edited 03-01-2013 04:48 AM
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.
03-01-2013 08:53 AM
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