10-22-2014 01:26 PM - edited 10-22-2014 01:29 PM
I am running into an issue where my program locks up after 25 events have been registered from a cluster. I have created a cluster 32 of boolean controls and when a control is pressed it triggers an event in my event structure. It doesn't matter which of the 32 controls I click, after exactly 25 button presses the program locks up. Does anyone have any ideas what could be causing this?
Solved! Go to Solution.
10-22-2014 01:33 PM
Please post a copy of your code.
10-22-2014 01:38 PM
If you uploaded code that would be supremely helpful. But it sounds like you have your 32 controls all wired into a cluster, then an event structure that does something to that cluster whenever any of the buttons are pressed?
10-22-2014 01:39 PM
I am unable to post the code due to company restrictions, but I will try to be as specific as possible.
This code is part of a queued state machine design.
When the control is pressed it triggers a user event structure that queues a state in another loop. This loop will then take the appropriate action based on which button was pressed. After 25 button presses the program locks up. I know it is hard to troubleshoot code that you can't see, but since I am not allowed to post it any general tips will be greatly appreciated.
10-22-2014 01:42 PM
Yes, we clearly need some code (possibly simplified), because your description is not clear.
10-22-2014 01:47 PM
10-22-2014 01:58 PM - edited 10-22-2014 02:12 PM
It would really help if you could make a simplified demo.
In the event configuration box, is there anything interesting (lock front panel, limit maximum instances, etc.)
Do you set a maximum queue size?
10-22-2014 02:21 PM
My queue size was the problem. I was not correctly clearing the queue after a button press and kept increasing the queue size. Thank you for the help.