FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Merging vi's from one program to another

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.

0 Kudos
Message 1 of 3
(3,952 Views)

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.

0 Kudos
Message 2 of 3
(2,787 Views)

Thank you.

0 Kudos
Message 3 of 3
(2,787 Views)