FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

State Machines

I am having trouble carrying my values outside my state machine or while loops - any help?

0 Kudos
Message 1 of 2
(6,737 Views)

Hi ddunlavy,

Can you explain a bit more about what kind of trouble you are having? You can just wire your values outside of the loop, and they will be passed after the loop terminates. If you need to pass data outside of a loop while it is running, you can use queues, notifiers, local variables (not preferred), or shared variables.

Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,923 Views)