Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Oct 26, 2011


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

WSN Dynamic Configuration

1 ratings | 5.00 out of 5
Print

Overview

This Example demonstraites how to configure properties and access data from NI WSN nodes dynamically on the NI 9792 WSN gateway.

Downloads

Filename: wsn_dynamic.zip
Requirements: View

WSN Dynamic Configuration

NI WSN's use the NI Shared Variable engine (SVE) I/O Variables to publish data to the network. Normally, properties for nodes are obtained by right clicking a node in the LabVIEW project and selecting properties. See, Step 6. Start Using the NI WSN System in the NI Wireless Sensor Network Getting Started Guide for more information. 

Properties are configured using the I/O Variable Dynamic API. The I/O variable LabVIEW VI's can be found on the block diagram by going to:

Data Communication >> Shared Variables

Property nodes and other application functions can be found in:

Programming >> Application Control

The example attached shows how this can be down and what configuration options are available for each WSN node. 

WSN Dynamic Configuration Properties

Properties are set by using the I/O Variables to communicate with the nodes. The base URL for configuring settings has the following format:

ni.var.io://<IP address or localhost>

From this URL address properties can be found by casting it to a more specific type such as a specific WSN node or generic properties for all nodes. 

WSN Dynamic Data

Data from physical analog and digital data from the nodes can be obtained by a layer in I/O Variables called NI-PSP. The SVE uses the NI Publish-Subscribe Protocol (NI-PSP) data transfer protocol to write and allow users to read live data. The base URL for aquiring data is in the following format:

ni.var.psp://<IP address or localhost>/<Node>....

From this URL address data variables can be obtained, names of the data, and data type. Once this is known data of interest can be read. 

Requirements


Filename: wsn_dynamic.zip

Software Requirements


Application Software: LabVIEW Base Development System 2009 SP1
Toolkits and Add-Ons: LabVIEW Real-Time Module 2009 SP1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Real-Time (RT)
Hardware Model: NI 9792, NI WSN-3202, NI WSN-3202 (programmable), NI WSN-3212, NI WSN-3212 (programmable), NI WSN-3226, NI WSN-3226 (programmable)
Driver: NI-WSN 1.2

 
1 ratings | 5.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).