11-12-2012 01:04 PM
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.
11-13-2012
10:24 AM
- last edited on
04-28-2025
05:00 PM
by
Content Cleaner
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://forums.ni.com/t5/Example-Code/Read-WSN-published-variables-without-a-project/ta-p/3505111
I hope this helps.
11-13-2012 11:18 AM
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?
11-13-2012
03:49 PM
- last edited on
04-28-2025
05:03 PM
by
Content Cleaner
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:
https://www.ni.com/docs/en-US/bundle/labview/page/sharing-live-data-programmatically.html#d28390e65
NI-PSP Networking Technology:
http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/ni_psp/
03-07-2013 11:18 AM
do i need the RT module or can i simply use PSP when i update to LV 2012?
03-08-2013 11:20 AM
Hello Lockesmith,
You do not need the Real-time module for network shared variables.