So our programming team has been able to set up and properly connect the camera and get a live feed from it in Labview. We took a picture with the camera sent it to the NI Vision Assistant, and made a subVI that searches for a template of the green color on top and the pink on the bottom. On the picture in the Vision Assistant the template is recognized and so are single colors. The images can be seen in the subVI but no matches are recognized. When we try to implement this in our main project it also doesnât give us any output. Any ideas of what we could do to fix that?
Did you have any problems getting Vision Assistant to create a VI for LABView? We are getting an error since we are using an âEvaluationâ version of Vision AssistantâŚ? Do you have a link to the tutorial you used to get the camera up and running?
Well, you didnât tell Vision Assistant you wanted to output anything.
What you need to do is possibly output a Particle Analysis using Vision Assistant. There you can select what you want to be outputted (area, x/y positionsâŚetc) and then in LabView you get that returned in a array. Manipulation from there is easy.
-Tanner
how did u guys get the camera working? We are working in LabVIEW to get the camera output but were not successfullâŚ
Can anyone please help?
We have the Vision Assistant creating a valid VI that detects what we want and gives us the position of it. It works when manually browsing for a webcam image and allowing it to process. As soon as we set it up on the cRIO with the webcam it gives us back all 0s for the values.
I know the SubVI is getting the webcam images because we have an output to display the image itâs processing and itâs updating just fine.
We followed exactly what the vision documentation showed for using the vision assistant with the cRIO. Weâve re-read it several times and double checked everythingâŚjust donât understand why the SubVI doesnât process the images when itâs running on the cRIO.
I ran into this problem also.
The problem was that the software has both the professional and FRC versions (or at least we ended up with both, possibly from last year). The FRC version was not activated, the professional version was under an evaluation license.
The solution was to go into the License Manager, open up the licenses, and click the empty square next to all of the FRC versions. A full yellow square means itâs activated, a half filled yellow square means evaluation copy, and empty means you cant use it at all.
You may also have to restart the vision assistant.
If you generate or build code that uses a template image, LabVIEW doesnât know anything about that template file. The diagram loads the template from disk using file I/O.
It is pretty easy to forget that you also want to put the template on the cRIO using ftp or explorer ftp, and modify the diagram to point to the cRIOs template. Donât forget that if you update the template, you need to ftp it again.
Greg McKaskle

We found a tutorial from NI that explains how to FTP the template files to the cRio to do image processing. The link to the tutorial is http://decibel.ni.com/content/docs/DOC-3032 we havenât tried this yet but it seems to be the fix weâre looking for.
It works! You have to put the template files on the cRio for it to check against.
You need to configure the camera first. To do this follow the steps in section 5.5 found in http://usfirst.org/uploadedFiles/5-FRC_Control_System-Configuration-0-5c.pdf
. After that you need to set the IP address to 192.168.0.90 .