Example Code

Pass WSN Node Data via Dual-Port CompactRIO[1]

Code and Documents

Attachment

Download All

Introduction

When using the NI-WSN Gateway and Nodes it may be preferred to use a Real-Time controller to read information from the WSN nodes and also to pass this data onto a host VI, to do this you must send the information as a Radio Message to the Compact-RIO (cRIO) as both ports on the cRIO must be within a different subnet.

Steps to Complete

The 2 Attached VI's show both the WSN code which periodically sends information (in this case temperature) as a Radio Message, the second VI reads this information for the WSN Gateway and formats it back into a readable form for a Graph.

RadioMessages.png

Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors