FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

basic robot main vi

What is the best way of adding a VI to the basics robot main VI.

For example I wrote a pid vi to control a motor, should it be added the same way the Autonomous VI is added, as a static reference VI ?

0 Kudos
Message 1 of 3
(6,717 Views)

The autonomous independent is a special case because it is part of the framework and is run as a seperate task. You shouldn't use it as an example.

What you probably want to do is on the functions pallete, choose select a vi and select the one you created.See Tutorial and Video: Dataflow, SubVI, and Parallelism in NI LabVIEW

Have you looked at the PID algorithms already implemented in LabVIEW? They are great. See The Effective Use of PID Control in Robotics Systems

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

Dear bob5g5,

You may also want to reference the Best Practices For Using the FRC cRIO Project Frameworktutorial. This tutorial explains how to add code to a framework.

Best Regards,

Nate

NI FIRST Support

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