Вы здесь

GetVersionExample.vi

GetVersionExample.vi demonstrates how to retreive information about hardware, library, server and firmware versions.

Application Block Diagram is shown below.

getversion-example.png

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. You can read "Hardware Type", "Hardware Version", "Library Version", "Server Version" and "Firmware Version" properties.

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.5 (2 оценок)

Языки

Вход на сайт