Working With Online Devices
129
etLinx Studio (v2.4 or higher)
NetLinx Diagnostics - NetLinx Device Control
Controlling a device in NetLinx Studio means that it will appear to a specified System device that
messages are being sent from the NetLinx master controller. The options in the Control a Device
dialog allow you to specify the <D:P:S> combination for the target device you want to control.
Use device control to simulate basic control of a specified NetLinx device, including Channels
(PUSH/RELEASE), Levels and String/Commands. Use this option to test specific areas in your
Source Code against a specific device.
To use NetLinx Device Control:
1. Select Diagnostics > Control a Device (or click the toolbar button) to access the Control a
Device dialog.
2. Enter the Device, Port and System <D:P:S> combination of the device you wish to control. The
<D:P:S> value ranges are 0 - 65,535.
3. To emulate a channel (push/release), enter a valid Channel number to emulate Channel
messages (i.e., Push/Release, CHON, and CHOFF) for the specified <D:P:S> in the Channel
text box.
 The Channel number range is 0-65535.
 Select the Push button to emulate a push/release on the channel specified. You may click
and hold down the Push button to see how the master controller responds to the push
message.
 Select the On or Off buttons to emulate Channel ON (CHON) and Channel OFF
(CHOFF) messages for the specified <D:P:S>.
4. To emulate a level, enter the desired Level (number), Value and data Type (BYTE, CHAR,
WIDECHAR, INTEGER, SINTEGER, ULONG, LONG, FLOAT, or DOUBLE), and click
Send to emulate the specified level and value.
 The Level number range is 0-65535.
 The list below contains the valid level data types and their ranges:
It is recommended that you enable NetLinx Notifications to view the results in the
Notifications tab of the Output Display window. For example, in order to view a string
sent to a device (via the Emulate Device dialog), you must first enable the Strings to
Device notification (in the NetLinx Device Notifications Options dialog). Additionally,
to view any strings returned from the device, you must enable the Strings From
Device notification.
Data Type Min Value Max Value
CHAR 0 255
INTEGER 0 65535
SINTEGER -32768 32767
LONG 0 429497295
SLONG -2147483648 2147483647
FLOAT -3.402823466e+38 3.402823466e+38