Page 1 of 1

Web page code: open and close every time?

Posted: Sun Feb 19, 2023 1:34 pm
by khun
I have trouble getting a web page for controlling Phidgets to work. It seems like things work one time after rebooting, then stop.

I have buttons on the page for turning on/off DigitalOutputs. If my "Load" code connects to the Phidget and opens all DigitalOutput channels, are they still available when the user presses a button and the program goes to the onClick code?

Or do I have to make a new connection and open (and close) the DigitalOutput every time the user presses the button?

I can't any of these scenarios to work...