When using the LabVIEW Wireless Sensor Network Module (LabVIEW for WSN), I notice that the template VI (Figure 1) doesn't have a loop in it. Why does the template VI not have a loop such that my code executes multiple times?
Figure 1: Default LabVIEW for WSN Template (with No Loops)
The LabVIEW for WSN template VI is essentially a subVI being called periodically by the WSN node. The rate at which your code periodically executes is set by the Sample Interval (Figure 2) value you specify in the Start case of the template.
Figure 2: Configuration Node in Start Case of LabVIEW for WSN Default Template VI
There is one reason for using a loop structure in the default template VI. Note that upon calling the default template VI (your code, Figure 1) multiple times, there's no built-in way to pass data from one case to another. You can use a single-iteration loop (Figure 3) such that you can implement a shift register in order to pass data from one case to another.
Figure 3: Default LabVIEW for WSN Template (with Loop and Shift Register Added)
Thank you for your feedback.
You changed your response to Not Helpful
You changed your response to Helpful
RT Controller with Integrated Gateway for WSNNI LabVIEW Wireless Sensor Network (WSN) ModuleThe LabVIEW Wireless Sensor Network Module - Under the Hood
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.