From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-01-2012 09:03 PM
I am trying to figure out how to have an array output showing which button is pressed depending on what buttons are pushed in a cluster of boolean buttons.
Basically if the first button is pressed, then the output array would have a value of 1. If the first button is pressed and the 9th and 10th button is pressed, then the output array would be 1, 9, and 10...so on an so forth.
I attached my .VI with the cluster of buttons that output into an array that shows the boolean value (1 or 0)....but this isn't quite what I am wanting to do.
Any suggestions would be appreciated.
Solved! Go to Solution.
04-01-2012 09:17 PM
Autoindex through your boolean array. When true append index to output array.
Lynn
04-01-2012 09:37 PM - edited 04-01-2012 09:38 PM
04-02-2012 12:05 AM
Stupid question...what is the item I circled in red? I looked through the menus and could not recreate it.
04-02-2012 12:17 AM
It is an empty array of I32 integers, or in other words an array constant.
The following link tells you how to make one.
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/creating_array_constants/
Cheers
04-02-2012 12:38 AM
Thanks guys. That's exactly what I was looking for.
04-02-2012 02:43 AM
@mcduff wrote:
The following link tells you how to make one.
Or, after wiring up the inside of the loop, simply right-click the left shift register and select "create constant". 😄