Passing values from "begin.vi" to "autonomous independent.vi"

After examining our LabVIEW code for this year, my team has decided to eliminate RefNums from our code in favor of code execution speed (http://www.chiefdelphi.com/forums/showthread.php?&p=1447945) .We are doing this by taking all of our DevRefs, clustering them, and passing that cluster to any location we want a registry value from. This has worked great for Teleop and Periodic Tasks, but we are running into issues when we want to do this for autonomous. The autonomous vi is run from a static vi reference in robot main, and we are unable to pass the values into it even after adding the correct terminal on the front panel. In this case, is the only way to get our values into autonomous to use global variables? In that case, are there any downsides to transferring that amount of data in a global variable? (we have about 15 refnums) Is there something I’m missing?

Thanks,
Bradley Boxer

Global variables are not a significant source of [strike]dietary fiber[/strike] CPU usage.

I suggest that you at least do a RefNum Set on everything you open anyway, even if you never do a RefNum Get later. That way you’ll be able to use Test Mode properly. As a bonus, you’ll then also have the option to do a RefNum Get for Autonomous instead of using globals.