|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Integrating Vision Example Into Robot Project
I am attempting to integrate my edited vision example into our robot project. I am following the tutorial from National Instruments to integrate examples. But when I get to saving it I am not sure where to save it. It says the robot project directory and click current folder. That is where I get lost. Any help would be much appreciated!
|
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
Re: Integrating Vision Example Into Robot Project
Whenever you want to see which files are being referenced by your project, to to the project window and click on the Files tab. It will show the location the files are coming from. If they aren't where you want them, you can right-click and Move on Disk...
In general, I would copy the example to a new location either under my project folder, or merged with my project folder. Then I'd drag the files I was going to use from that location in a Windows File Explorer window to the LV project window or directly to the LV diagram you want to call the VI. Greg McKaskle |
|
#4
|
||||
|
||||
|
Re: Integrating Vision Example Into Robot Project
Thank You for the help it is much appreciated.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|