Limit of Button_Events on same channel.
ericmedley
Posts: 4,177
I often find myself doing multiple button_events on the same button as I quite often use multiple includes/modules in a project that get status from that button.
I've never had any issue with this but it did get me thinking the other day. Is there an uppoer limit to the number of button_events in a program on the same button or buttons?
a simple example would be:
how many times can I do this and still have all the events fire?
Does anyone know the answer to this?
I've never had any issue with this but it did get me thinking the other day. Is there an uppoer limit to the number of button_events in a program on the same button or buttons?
a simple example would be:
how many times can I do this and still have all the events fire?
BUTTON_EVENT[TP1,1] { PUSH: { // Do something 1 } } BUTTON_EVENT[TP1,1] { PUSH: { // Do something 2 } } BUTTON_EVENT[TP1,1] { PUSH: { // Do something 3 } } // etc....
Does anyone know the answer to this?
0
Comments
You should copy this button event and paste it a few hundred times. Then select the column where the '1' is and do a Sequentially Renumber Selection. Now compile, send, and run this program. Turn on diagnostics, hit the button, and see what the highest number that pops out is.
Out of curiousity I'd like to see you run the test to see the results.
You guys sure seem interested in me trying to blow up one of my masters...
No....
Can you film it?
diagnostics: (around 150 of these)
NS3 is definitely wierding out with all these button events too.
I created another button event group for channel 2 but this time w/o the send string 0 so I can see what happens to the just variable w/ bogging the mast down w/ send strings.
On channel 2 w/ only the events changing the variable it would consistantly count to 40 with a button push.
With the BE for ch 1 commented out so that only 180 will run I only got 3 of the buffer messages and all send string 0's printed.
Now on the BE for ch 2 I commented out all but 3999 and I got 150 buffer error messages & my variable counted to just 1. Not what I expected.
Ok so now I comment out all but 255 on both and w/ a push for BE 1 I get 5 buffer messages and all send strings print. With a push on BE 2 the variable counts to 255 w/ no problems and no buffer messsages.
So I then tried 1024 w/ both BE's, and only 24 would either print or be counted by the varaible.
So I finally tried 999 cuz the previous result of 24 out of 1024 seemed a little suspicous, like a rollover or something and w/ BE1 I'd get 35 buffer messsages and print out 499 send strings, the var count was also 499. BE 2 I got a bunch of the buffer messsages the var again counted to 499.
None of these numbers seem to make sense but maybe the counts rollover on 500 but initial I had 180 out of 5k+ so beets me. Of course with just the variable on BE 2 I got 40 consistantly which was tring to do 5040.