Вы здесь

SetDeviceIdExample.vi

SetDeviceIdExample.vi demonstrates how to set and retrieve connected DLN-series adapter ID number.

Application Block Diagram is shown below.

setdeviceid-example.png

It is seen that all components are connected sequentially and all error inputs and outputs are connected. First, we call DlnConnect.vi component and connect to proper inputs port and host values. Then we call DlnOpenDevice.vi component, it opens any connected DLN-series device and returns its reference. Add Property Node and connect Dln.Device reference output from DlnOpenDevice.vi. 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 DlnDisconnect.vi to close connection with DLN Server and Dln.Library reference.

Rating: 
Средняя: 1 (1 оценка)

Языки

Вход на сайт