08-23-2023 10:48 AM
Hi guys. The numeric is using a binary input and I would like the LEDs to light up in the same order, however right now they are in reverse order.
I have tried using the reverse 1D array but then the LEDs did not work
Thank you all for your input!
Solved! Go to Solution.
08-23-2023 11:05 AM
The boolean array has more than 8 elements. Show all elements or alternatively extract the first 8 elements before reversing.
08-23-2023 11:18 AM - edited 08-23-2023 11:54 AM
Change your numeric to U8 (right-click...representation...U8).
(You are currently generating 32 booleans. Note that array container size != array size)
08-23-2023 11:26 AM
Ahhhh that worked! Thank you very much!!
08-23-2023 11:51 AM - edited 08-23-2023 11:52 AM
@FlightGuy wrote:
Ahhhh that worked! Thank you very much!!
If you actually want to keep the original order of the bits but want to display it reversed, you might want to convert it into a cluster of Booleans instead. An advantage of this is then you can explicitly name each bit if needed. And when you want to do an array-type operation on it, you can easily convert it back to an array and do your thing. (And if needed, easily re-convert it to a cluster.) I usually opt for vertical display, because then the Boolean labels don't "get in the way". I can move them off to the side. Naming the bits removes any ambiguity concerning LSB MSB.