From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Wireless Sensor Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

poll wsn for multiple channels of data

Hello,

 

I have a WSN infrastructure that utilizes three gateways and many direct communication WSNs per gateway.  In order to clean up some code, I'm trying to make my code operate in a more efficient manner.  Originally I would drag and drop the individual properties that i wanted to poll, this became very cumbersome and my error handling when i programmed it wasn't great.  I have now grouped the nodes in my network by gateway, then by serial number.  I want to read all the channels be SN inside my code.  I am storing the sensor channel locations as an array of BV Tags and i can't figure out how to poll for multiple channels of data at the same time per node.  I was using a for loop but i think this is i would be limited by the sample rate on the sensor node.  Does anyone have any suggestions?  I'm stumped.

0 Kudos
Message 1 of 6
(6,413 Views)

Hello Lockesmith,

 

Here is a community example which allows programmatic access to the network shared variables published by the WSN hardware using NI Publish-Subscribe Protocol Primatives.

 

https://decibel.ni.com/content/docs/DOC-23407

 

I hope this helps.

Wear
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 6
(6,400 Views)

Yes, i have seen that link.  The problem is that i'm on lv 8.6.  Do you know of any solutions for my software version?

0 Kudos
Message 3 of 6
(6,397 Views)

Lockesmith,

 

PSP is the only way to programmatically access the WSN variables. The reason that the VI can not be used in 8.6 is because the functionality was added in LabVIEW 2009. I have included two knowledge bases about the PSP primitives and programmatic data access which should be able to be used in LabVIEW 8.6.

 

Sharing Live Data Programmatically:

http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/using_datasocket_technology/#Specifyin...

NI-PSP Networking Technology:

http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/ni_psp/

Wear
National Instruments
Product Support Engineer
Message 4 of 6
(6,388 Views)

do i need the RT module or can i simply use PSP when i update to LV 2012?

0 Kudos
Message 5 of 6
(6,142 Views)

Hello Lockesmith,

You do not need the Real-time module for network shared variables. 

 

Wear
National Instruments
Product Support Engineer
0 Kudos
Message 6 of 6
(6,128 Views)