AdcExample.vi demonstrates how to set and get properties values of ADC port and its channels.
Application Block Diagram is shown below.
All components are connected sequentially and all error inputs and outputs should be connected. First, we call DlnConnect.vi component and connect to proper inputs
host values. Then we call DlnOpenDevice.vi component, which opens any connected DLN-series device. DlnAdcPort.vi gets
Dln.Device reference and
port number as inputs and we get
Dln.Adc.Channel references as outputs. Connect
Dln.Adc.Channel references outputs to
Property Nodes. To add Port or Channel properties right-click on Port Property Node choose Add Element, then right click again on the new element and choose "Select Property" list. After property is added you can change property to read or write also by right-clicking on property element.
After all operations with ADC module are done, close
Dln.Device reference and finally call DlnDisconnect.vi to close connection with Dln Server and