Thanks Max, that’s what I was afraid of. I’m in reparse protocol mode and I have to read and parse the serial buffer on every page where there are values coming from the serial port. It’s not a ton of code, but it is cumbersome because some of my data is 8 bit, some is 16, and some is 32. All data come in as integers, but some with scaling of 1, some with 10, some with 100. So every datum has to be considered for length, scaling, and destination.
What I wanted to do is for each display box put a code behind the click function which loaded a global register with the length of the incoming word and the scaling. I’d use a timer to click each box, the box would load the registers and cause a serial read and parse. The destination, of course, would be the box.
Why this won’t work is because if I have a display box on page 2, and I run the code on page 1, even if my page 1 code included code to click on the page 2 box, the code behind the box wouldn’t run, and the registers wouldn’t get loaded.
Any ideas on how to do this without copying the code onto every page?