Specifications

NetLinx Security within the Web Server
129
NetLinx Security - Web Server
3. To configure a Dynamic application interface:
Add the DYNAMIC_APPLICATION_DEVICE API call to the section of the NetLinx
program (FIG. 80 on page 122) containing the Duet Virtual Device D:P:S, the Duet
Device type constant, and the associated friendly name string.
- DYNAMIC_APPLICATION_DEVICE specifies a Duet device that is completely
dynamic. A dynamically discovered device matching the specified deviceType could
be bound to the duetDevice from anywhere in the system.
DYNAMIC_APPLICATION_DEVICE (DEV duetDevice, char[] deviceType,
char[] friendlyName)
Add the DYNAMIC_POLLED_PORT API call for any NetLinx physical device D:P:S's
that should be polled to discover connected devices.
- DYNAMIC_POLLED_PORT designates a NetLinx serial port that should be polled
for dynamic device detection. This API must be called for each serial port that
can dynamically have a device plugged into it.
DYNAMIC_POLLED_PORT (DEV netlinxDevice)
4. Write the remainder of the NetLinx application to communicate with the device via the Duet
Virtual Device (D:P:S) using the Standard NetLinx API for that device type.
5. Compile the program file and then download it to the target Master via the Tools > File
Transfer dialog,
6. Run the NetLinx application on the target Master.
How do I configure a Run-time installation
To utilize Dynamic binding execute step 1 then step 2 then proceed to Step 3.
To utilize Static binding execute step 2 then step 1 because the static bindings will try to bring up
the Duet module as soon as the device is discovered and it's best if the module is already available
on the Master.
1. Connect the device to the system.
If the device is a DDD enabled Serial or IP device, then the device will be automatically
discovered and show up in the Master's View Discovered Devices UI page under Manage
Other Devices. (FIG. 83 on page 125).
If the device is not DDD enabled and/or cannot be automatically discovered (ex. IR
device) the installer must enter the device information into the Master via the User
Defined Device Web page under manage Other Devices. (FIG. 85 on page 127)
2. Verify the appropriate Duet module is available.
If the Master is connected to the Internet, the Module Search via Internet button
(FIG. 78 on page 116) can be enabled (via toggling).
From within the View Discovered Devices UI page, click the Search button adjacent to
the appropriate device to begin the search of an appropriate module.