Вы здесь

GpioExample.vi

GpioExample.vi demonstrates how to set and get properties values of GPIO pins.

Application Block Diagram is shown below.

Labview GPIO example

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 port and host values. Then we call DlnOpenDevice.vi component, which opens any connected DLN-series device. DlnGpioPin.vi gets Dln.Device reference and pin number index as inputs and we get Dln.Gpio.Pin reference as output. Connect Dln.Gpio.Pin reference output to Property Node. To add Pin properties right-click on Property Node function and 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 Dln.Library reference.

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

Языки

Вход на сайт