10-26-2011 09:54 AM
Hi All !
I have binary number, say 00000101. I want to indicate every bit by corresponding led on the Front Panel.
So in this case it'll be led0 and led2 on.
How can i do it?
Solved! Go to Solution.
10-26-2011 10:08 AM
10-26-2011 10:36 AM
Thanks a lot!
10-26-2011 10:48 AM
...and reverse the array if you want the MSB to the left.
Ben
10-26-2011 10:50 AM
In addition you sometimes might want to reverse the array.
(In the binary numeric indicator, the lowest bit is on the right while the array starts with the lowest bit (i.e. it is on the left if the array indicator is horizontal).)
10-26-2011 11:04 AM
10-26-2011 11:13 AM
STAND-BACK EVERYONE!
Darin is reaching for the type cast again.
Ben
10-26-2011 01:15 PM
@Darin.K wrote:
Ah c'mon, Type Cast man is shaking his fists right now, he knows you just Type Cast that number to a Boolean Array in 4.x mode and it is human readable. A gratuitous display of arcane LV functions is sure to impress your boss and coworkers as well.