Log in

View Full Version : Spending Boolean values throughout code


tommy0019
19-02-2012, 20:44
I am needing to know how to spend a boolean value from the teleop vi to the timed task vi, that way i can control the code. I was wondering if anyone could point me in the right direction.

beandip3160
19-02-2012, 21:01
I havent done alot with them but what you might be looking for is a global variable but im not sure

tommy0019
19-02-2012, 21:08
Do you know how to set up a global variable?

Mark McLeod
19-02-2012, 22:07
See if this (http://team358.org/files/programming/ControlSystem2009-/LabVIEW/CreateGlobal.PDF) helps any.

tommy0019
19-02-2012, 23:46
i got the global variables working but now when i run my code the sonar that i have in the timed tasks vi only works when the code is not enabled.

beandip3160
20-02-2012, 16:51
what does your code look like in both v.i.s