02-22-2015 08:29 PM
I have an array of Boolean controls on the front panel. I want to trigger an event when any member of the array changes. Unfortunately, this isn't happening. I've checked by placing a break point in the event structure on the value change for the array and it doesn't fire when the boolean buttons change. I haven't tried this for numeric arrays. Is there a solution to this problem?
02-22-2015 08:41 PM
Show your code. Attach your VI.
It should work, unless you are doing something wrong.
02-22-2015 11:39 PM
I believe you have Indicator and not controls. Events will get triggered when you change the value in the FP unless you have a Registered event to trigger.
02-23-2015 12:00 AM - edited 02-23-2015 12:01 AM
A possible solution might look like this. Remember that when values change by wire the change event is not fired. To address this behaviour you can use the Value(signaling) Event, a Dynamically Registered Event on the value change of the array or a User Event. In this example I chose the first suggestion.
02-23-2015 08:19 AM
Well, I went back to the program to cut it down so I could post it and it worked right away - no edits. I suspect that what happened was the aray was originally an indicator array. I changed it to control so I could change it from the front panel and when the event didn't fire, I deleted the event case and remade it, but it still wouldn't fire. Getting out of Labview entirely and coming back in resolved the issue (something I should have tried earlier). So it looks like I just managed to confuse Labview temporarily. Thanks for the replies.