11-06-2009 08:05 AM
During the 2009 competition I had to do whatever it took to get code into our program.
This year I am wanting to do things a little better.
I have taken the Analog Input Example.vi and used it to write a program to test some hardware.
Now, I am working with the Advanced Framework of the FRC cRIO Robot Project and doing some other testing.
I would like to copy the code that I wrote in the Analog Input Example.vi into the Periodic Task.vi.
Can someone tell me how to do that?
Thanks.
11-06-2009 03:09 PM
To move code from one VI to another, you can select it, copy, and paste it into another VI. You can also take your code and make it into a subVI (select the relevant portion, then do Edit -> Create SubVI). Save it and then insert the new subVI into your Periodic Task by right-clicking in the block diagram, choosing "Select a VI..." and picking the subVI you just created. Make sure you wire all the controls to it as necessary.
01-16-2010 08:32 AM
Thank you.