12-28-2008 12:48 PM
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 ?
12-28-2008 01:18 PM
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
12-29-2008 10:33 AM
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