LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control transmission of WSN Node using boolean variable from main VI in project

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?

0 Kudos
Message 1 of 4
(2,212 Views)

case statement?

 

can u post a picture of the vi, we may be able to help in a more constructive way 

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 Kudos
Message 2 of 4
(2,207 Views)

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!

Ryan C.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(2,195 Views)

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?

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 4 of 4
(2,181 Views)