From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use property nodes to change the state of a boolean through time

I want to be able to switch the value from a boolean control, using property nodes, so that if the time elapsed is equal to 0,1 ,2 ,3 s, it should be false and if the time is equal o.5,1.5,2.5 s, the value should be true.

Can some one tell me how to do this with propert nodes or with any other method?

Thanks in advance!

0 Kudos
Message 1 of 3
(2,657 Views)

Why property nodes? Local variables are probably preferred.

You probably should define time intervals for true and false (e.g. false from 0..0.5s, true from 0.5..1s, etc.)

 

What have you tried so far? A simple while loop with a loop time of 500 ms and a shift register with a boolean that gets inverted with every iteration is probably all you need. You also should probably make the boolean an indicator, since it is not controlled by the operator. Now you don't need local variables or value properties at all. 😉

0 Kudos
Message 2 of 3
(2,646 Views)
-Check this link for ideas on how to make loop run for specific period of time.
http://forums.ni.com/t5/LabVIEW/how-to-make-a-loop-run-for-specific-period-of-time/td-p/1641018
-To change value using property node>>right click boolean>>create>>Property node>>value>> Change it to write.
-Forget about specific period of time, first learn to change the value of boolean programmatically.
Thanks
uday
0 Kudos
Message 3 of 3
(2,624 Views)