03-20-2012 03:47 AM
We created a main VI in a project (with a WSN gateway and nodes) where we have a boolean variable that we would like to use in the WSN target VI. If the boolean variable is TRUE, we want the node to transmit. If it is FALSE, the does not transmit. How can we do that?
03-20-2012 04:34 AM
case statement?
can u post a picture of the vi, we may be able to help in a more constructive way
03-21-2012 11:39 AM
Hi Kooks,
As Akiel stated, it sounds like you are looking for a Case Structure. See a tutorial here: http://zone.ni.com/devzone/cda/tut/p/id/7592
As well, there is an example called "Simple Case Structure.vi"including in the Ni Example Finder with your LabVIEW. In LabVIEW, go to Help > Find Examples... and search for it.
Best of luck!
03-26-2012 04:49 PM
What version of LabVIEW are you using?
You will need to program the node to get this behavior, which will require the WSN Module and programmable nodes. Then you can create a UDV (assuming you're using LV 2011) that you can read on the node and use it to decide whether or not to transmit the data.
What is the use case for this? Are you wanting the node to go to sleep or conserver power?