07-02-2011 06:30 AM
May I know how do I change the sampling rate on a Thermocouple node dynamically through a VI on the host ?
I notice there is a Config node in the "Start" case where I can set the "Sample Interval Mode" to "Host Driven" but I do not know how to continue after that...
Thank you very much !
06-17-2012 01:48 PM
Host Driven means that the project settings (right-click on the node > Properties) will determine the sampling rate.
What you will need to do to change the sampling rate from the host is to send a message to the WSN node for the host VI (preferably through a user-defined variable) to tell the node to change the sampling rate. Then you can use that invoke node to affect your sampling rate (aka do not use Host Driven).
07-02-2012 01:29 PM
A user message is created by simply right-clicking on the node and selecting "Create User-Defined Variable." Once you set it up, that variable will update over the network automatically.
Once you've got that setup, you need to figure out how you are going to use that variable. You should probably start here: The LabVIEW Wireless Sensor Network Module - Under the Hood
Note: User-defined variables are only available in LabVIEW 2011 for WSN.