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.
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.
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
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.
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
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:
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.