|
Re: Integrating Vision Example Into Robot Project
Your robot code is typically in C:\Documents and Settings\usernamehere\My Documents\LabVIEW Data\projectnamehere.
Open the Vision example, press File > Save as, choose the option to duplicate .lvproj and its objects (only saving the SubVI you worked on MAY work on other, very small FRC examples, but in Vision's case it's very dependent on other files in the project). Navigate to the path I've mentioned above (unless you changed it when you created the robot code).
Once you've saved it, open your robot project and drag the Vision Processing VI to Robot Main VI. Wire it properly if needed, make any other necessary adjustments to the code and you're done.
Rectanglular-shapes Vision Processing example features both a SubVI designed to use on a PC (from the Dashboard), and a SubVI designed to run on the robot. Since you intended to use the version designed from the robot and it's usually the easier option for the average programmer, make sure you use that one when dragging the SubVI to Robot Main.
|