ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(7,077 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
(3,263 Views)