LabVIEW Wireless Sensor Network Module

NI-WSN I/O Variables

  • Updated2023-02-21
  • 2 minute(s) read

NI-WSN uses the NI Publish-Subscribe Protocol (NI-PSP) for both remote and local I/O variable access. Local access in this context refers to I/O variable access from a LabVIEW Real-Time VI running on a WSN RT gateway.

Note Note  The Using I/O Variables (ETS, VxWorks, Windows) topic provides general information about I/O variables. Only sections that refer to NI-PSP I/O variables are applicable to NI-WSN.
Note Note  NI-WSN (LabVIEW 2010 or later) does not support local I/O variable access using the NI Scan Engine.

You can access NI-WSN I/O data using static I/O variables from the LabVIEW Project tree or programmatically using DataSocket Vis or Shared Variable Vis with the following URL format:

ni.var.psp://gateway/node/channel


  • gateway—The IP address of the NI WSN-9791 Ethernet Gateway or NI 9792 WSN Real-Time Gateway. For NI 9792 WSN Real-Time Gateway targets, local I/O variable access may use localhost.
  • node—The WSN node name. The default node name is Nodex, where x is the ID assigned to the node when it was added to a LabVIEW project or WSN gateway. You can change node names in the LabVIEW project. Node names become active after the you deploy the project to the gateway.
  • channel—The I/O variable name. Default I/O variable names depend on the WSN node type. You can change I/O variables names in the LabVIEW project. I/O variable names become active after you deploy the project to the gateway.

You can explore the I/O variable published by your WSN gateway using any of the following: