![]() |
|
|
When you use image processing techniques such as calibration or pattern matching, you usually reference a template image in your code. For your code to run successfully on the cRIO, you will need to manually move the required template images from your computer to the cRIO and correctly reference these images from your code. This holds true for any files that your code needs to reference by opening the file from disk, not just image templates.
To move necessary files to or from the cRIO, use FTP:
1) Open the Windows Explorer by right-clicking on the Windows Start button and clicking Explore
2) Connect to your cRIO by typing ftp:// followed by the IP address of your cRIO and clicking Go. For example, If I'm on team 0, then I would enter ftp://10.0.0.2 into the address bar. If I was on team 9999, I would enter ftp://10.99.99.2
3) Navigate to the startup folder located at ni-rt/startup
4) Copy and Paste, or drag the necessary files into the directory of your choice. For template images, I recommend the Camera directory.
5) Find where your code references the required file. This will be in the form of a file path constant or control, and will reference a location on your computer. Change this path to reference the new location of the file on the cRIO.The file path for the cRIO will be /ni-rt/...
6) Save your code and re-deploy to the cRIO. Your code should now be able to successfully reference the required files from the cRIO.
Where is the Download file?