Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Accessing User RAM (WSN)

LabVIEW Wireless Sensor Network Module Help

Edition Date: June 2013

Part Number: 372802E-01

»View Product Info

Some WSN nodes have user RAM, which is extra memory on the WSN node that you can use to store additional data. Refer to the WSN node documentation to determine if the node has user RAM.

If a WSN node has user RAM, the data acquired from some physical channels is stored in the user RAM. In this case, the Elemental I/O item for the physical channel returns a reference to the data stored in the user RAM. You use the Write Variable function to write data to the I/O variables in the project.

The following block diagram reads data from AI0 on Node1 and uses the Write Variable function to write that data to the AI0 I/O variable.

You use the User RAM VIs to allocate and free space in the user RAM and to read data from and write data to specific blocks of memory in the user RAM.

The following block diagram reads data from AI0 on Node3 and copies the data to an allocated block in the user RAM. The example then writes the square of each element to the user RAM and then writes that data to User1, a user-defined I/O variable.

The user RAM shares RAM with the I/O variable buffer on WSN nodes. Use the Memory Configuration page to configure the amount of space allocated to the I/O variable buffer and the amount of RAM available as user RAM.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit