zsom:examples:wifi

Example: Wi-Fi

This example enables the Wi-Fi interface and sets the credentials, if not already done.

Project: ZSOM-Control_WiFi.lvproj (ZSOM-Control) and ZSOM-Mini_WiFi.lvproj (ZSOM-Mini). In LabVIEW, open Help → Find Examples and search for “ZSOM”.

Note: A compatible Wi-Fi module must be connected to USB, see Wi-Fi.

Wi-Fi example, front panel (ZSOM-Control)
RT code: front panel (ZSOM-Control)

Wi-Fi example, front panel (ZSOM-Mini)
RT code: front panel (ZSOM-Mini)

The front panel of the ZSOM-Mini has three additional controls for the power of the USB port: RESET\ USB, Enable VP and Enable USB, see Power and GPIOs. The project also contains the FPGA VI ZSOM-Mini-Connect-WiFi_FPGA_main.vi: TBD.

Control / Indicator Function
wifi net: ssid, psk Name and password of the Wi-Fi network
update configuration Transfers the network settings to the ZSOM
status: status, ip, ssid, bssid, link quality Current state of the connection
configured Wi-Fi networks List of the configured networks: network id, ssid, flags
run loop Counter of the loop iterations
error out / last error Error cluster of the last action and the last error
  • RT (WiFi_RT_main.vi): In a loop (wait time 200 ms) the VI zsom.rt.wifi.network.add.vi sets the network when update configuration is pressed. Then zsom.rt.wifi.network.list.vi reads the configured networks and zsom.rt.wifi.status.vi reads the status of the connection.
  • FPGA (WiFi_FPGA_main.vi): TBD

Block diagram of the RT VI (ZSOM-Control)
RT code: block diagram (ZSOM-Control)

  • Last modified: 4 weeks ago