Table of Contents

Example: Mini GPIO

This example shows how to control the GPIOs that control the power distribution on the ZSOM-Mini. It also reads and writes the digital I/O lines. For the meaning of the GPIOs, see Power and GPIOs.

Project: ZSOM-Mini_GPIO.lvproj. In LabVIEW, open Help → Find Examples and search for “ZSOM”.

GPIO example, front panel (tab GPIOs)
RT code: front panel

Front panel

The front panel has two tabs.

Tab Content
GPIOs The power distribution of the ZSOM-Mini as a diagram with the GPIOs that switch the regions: GPIO_ENVP, GPIO_ENANALOG, GPIO_ENDIO, DIO_LEVEL, GPIO_ENHUB, GPIO_USBRESET and GPIO_KILL. The Go input is shown as the On Off button.
DIO DIN DOUT DIO1–DIO10 (direction, output, input), DOUT1–DOUT4 and DIN1–DIN4

How it works

Most regions of the ZSOM-Mini are off by default. To use a region, switch on the corresponding GPIOs first, see ZSOM-Mini Quick start guide.

Block diagram of the RT VI
RT code: block diagram

Block diagram of the FPGA VI
FPGA code: block diagram