OnChange fired for every I/O during Phidget Load

Supporting 2.7 and 3.2+
Post Reply
Nadav
Phidgetsian
Posts: 11
Joined: Fri Jan 13, 2017 1:50 am
Contact:

OnChange fired for every I/O during Phidget Load

Post 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)
User avatar
Patrick
Lead Developer
Posts: 3405
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

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

Post by Patrick »

Yes, you will get change events for the initial state.

-Patrick
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests