Quote:
Originally Posted by grosh
We have the Get SwitchVI in place now in "other""default", thanks Shivang1923. How did I get the selected autonomous mode to be read in the autonomous VI. We have found a few CD threads on this topic, but they are written for the advanced mode. We are using Basic mode. Is this possible in Basic or are we not finding the right threads?
Thanks
|
ok try something along these lines
i am assuming you guys changed the vi to match your button inputs
the output of the GetSwitchVI is a number
the number is counted in binary depending on the switch: so if the first switch is true, then the number is 1, if the second then it is 2 if first AND second then 3 if none then 0.
there is a global variable called robot data. If you have watched the tipjar videos from lvmastery.com, you would know how to place more 'data(for lack of the proper term =P)' into the global variable Robot Data. place just a number indicator into there.
in autonomous independent vi, unbundle the global, take the number (again, the videos from lvmastery tipjar will teach you this.) and wire it into a case structure. Then inside each of the cases, put what autonomous code you want running into it.