Show/Hide hidden text
This chapter gives an overview of the events that are raised by a Phidgets InterfaceKit device and that can be used in the Event Listener.
Please read the chapters "Phidgets - InterfaceKits" and "Event Listener" if you would like to know how to add and use both. The available members that can be used in our scripting language are explained in the chapter "Phidgets - InterfaceKits Members".
available for Phidgets_InterfaceKit_0_16_16 and Phidgets_InterfaceKit_8_8_8
Example:
Label1.Text = "Input" + AnyInputChanged + " changed to " + value2
This event is raised whenever the state of any digital input of your Phidgets InterfaceKit changes.
The event returns two parameters to WD. The first is an integer value and holds the number of the digital input that changed its state. The first input returns "0" and the last either "7" or "15" depending on the InterfaceKit. The second parameter is a Boolean value with the name "value2" and holds either "True" ("On" state) or "False" ("Off" state).
If you select this event and copy the example into the scripting field of the Event Listener, it will write new text into the Label with ID 1 whenever a digital input state changes. The Label will for example say: Input2 changed to False
|
available for all InterfaceKits, Phidgets_InterfaceKit_0_16_16 and Phidgets_InterfaceKit_8_8_8 and Phidgets_InterfaceKit_0_0_4
Label1.Text = isConnected
This event is raised whenever the connection state changes from disconnected to connected or vice versa.
The event returns one parameter to WD which is a Boolean value with the name "isConnected" and holds either "True" or "False".
If you select this event and copy the example into the scripting field of the Event Listener, it will write "True" or "False" into the Label with ID 1 whenever the device dis-/connects.
|
available for Phidgets_InterfaceKit_0_16_16 and Phidgets_InterfaceKit_8_8_8
Example:
Label1.Text = state
This event is raised whenever the state of the according digital input changes.
The event returns one parameter to WD which is a Boolean value with the name "state" and holds either "True" ("On" state) or "False" ("Off" state).
If you select this event and copy the example into the scripting field of the Event Listener, it will write "True" or "False" into the Label with ID 1 whenever the digital input state changes.
|
available for Phidgets_InterfaceKit_0_16_16 and Phidgets_InterfaceKit_8_8_8
Example:
Label1.Text = "YourMessage"
This event is raised whenever the state of the according digital input of the Phidgets InterfaceKit changes to "Off".
If you select this event and copy the example into the scripting field of the Event Listener, it will write "YourMessage" into the Label with ID 1 whenever state of the according digital input changes to "Off".
|
available for Phidgets_InterfaceKit_0_16_16 and Phidgets_InterfaceKit_8_8_8
Example:
Label1.Text = "YourMessage"
This event is raised whenever the state of the according digital input of the Phidgets InterfaceKit changes to "On".
If you select this event and copy the example into the scripting field of the Event Listener, it will write "YourMessage" into the Label with ID 1 whenever state of the according digital input changes to "On".
|
available for Phidgets_InterfaceKit_8_8_8
Example:
Fader4.Value = value
This event is raised whenever the according voltage input of the InterfaceKit 8/8/8 changes its value.
The event returns one parameter to WD which is a double with the name "value" and holds the current input value.
If you select the event and copy the example into the scripting field of the Event Listener, the Widget Designer Fader with ID 4 will be assigned with the same value as from the according voltage input whenever it changes.
|