Page 1 of 1

OnChange fired for every I/O during Phidget Load

Posted: Fri Jan 13, 2017 2:17 am
by Nadav
Is the InputChanged handler meant to be fired for *every* input after the phidget is opened?
Per the code below, once the phidget is loaded, interfaceKitInputChanged() is called for each input, and interfaceKitOutputChanged() is called for each output.
Is this the intended behavior?

Code: Select all

kit = InterfaceKit()
kit.setOnAttachHandler(interfaceKitAttached)
kit.setOnInputChangeHandler(interfaceKitInputChanged)
kit.setOnOutputChangeHandler(interfaceKitOutputChanged)
kit.openPhidget(sn)

Re: OnChange fired for every I/O during Phidget Load

Posted: Fri Jan 13, 2017 9:30 am
by Patrick
Yes, you will get change events for the initial state.

-Patrick