Emulate a Custom Event
A custom event is generated by certain devices in response to query commands or unique device events. For example, touch panels generate custom events in response to button query commands or mouse clicks.
You can emulate a custom event by using the Emulate a Custom Event dialog. Use the options in this dialog to emulate a custom event message from a device in NetLinx Studio and send the message to a Master. For more information on Custom Events, refer to the NetLinx Programming Language Reference Guide.
Perform these steps to emulate a custom event:
- Select Diagnostics > Emulate Custom Event. The Emulate a Custom Event dialog opens (FIG. 282).
FIG. 282 Emulate a Custom Event dialog
- In the Device to Emulate area, enter the Device, Port, and System numbers for the Master or the device to which you want to send the custom event.
- In the Custom Event Values area, enter the following values:
- The ID of the custom event, as defined by the device. This must be a value between 0 and 65535.
- A flag associated with the custom event. This must be a value between 0 and 65535.
- The type of custom event, as defined by the device. This must be a value between 0 and 65535.
- The first, second, and third values associated with the event. These values can be string characters.
- Click an option button to select a string type. You can choose from 8 Bit Strings or 16 Bit Strings.
- Enter a string to send to the device in the String Value field.
- Click Send To Master to send the custom event to the device.
- When finished, click Done to close the dialog.