Show/Hide hidden text
This chapter gives an overview of the events that are raised by a Phidgets Digital Input device and that can be used in the Event Listener.
Please read the chapters "Phidgets - Digital Input" 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 - Digital Input Members".
Example:
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.
|
Example:
Label1.Text = state
This event is raised whenever the state of the Phidgets_DigitalInput device 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 device state changes.
|
Example:
Label1.Text = "YourMessage"
This event is raised whenever the state of the Phidgets_DigitalInput device 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 Phidgets_DigitalInput1 device change to "Off".
|
Example:
Label1.Text = "YourMessage"
This event is raised whenever the state of the Phidgets_DigitalInput device 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 Phidgets_DigitalInput1 device change to "On".
|