You are here demonstrates how to set and retrieve connected DLN-series adapter ID number.

Application Block Diagram is shown below.


It is seen that all components are connected sequentially and all error inputs and outputs are connected. First, we call component and connect to proper inputs port and host values. Then we call component, it opens any connected DLN-series device and returns its reference. Add Property Node and connect Dln.Device reference output from To add Device properties right-click on Property Node and choose "Add Element", then right-click again on the new element and choose "Select Property" and click property name to add it. After property is added you can change property to read or write by right-clicking on property name and choosing correct operation. After ID property is added you can assign new ID value or retrieve current.

After all operations are done, close Dln.Device reference and finally call to close connection with DLN Server and Dln.Library reference.

Average: 1 (1 vote)

User login