NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
xinke
Posts: 13
0 Kudos

Changing the Sampling rate

Hi,

 

   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 !

 

Regards,

Xinke

Active Participant
PackersFan
Posts: 253
0 Kudos

Re: Changing the Sampling rate

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

Chris
Certified LabVIEW Developer
Member
MaLac
Posts: 44
0 Kudos

Re: Changing the Sampling rate

Hi,

Is there an exemple how to use user message with WSN, I don't have any idea what to put in the message to chage properties as sample rate or sensor power.

 

Thank you

 

Mathieu

Active Participant
PackersFan
Posts: 253
0 Kudos

Re: Changing the Sampling rate

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.

Chris
Certified LabVIEW Developer
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page