Log in

View Full Version : IMAQ Error


RaxusPrime
31-01-2014, 19:45
Hey,
We are having a problem. An error always shows up when we try to run the vision example in our code.

Here is the error:
http://i.imgur.com/VjY06AC.jpg

Does anyone know how to solve this issue? Team 3883

magnets
31-01-2014, 19:51
Can you post a screenshot of your code?

If you're deploying to a robot, some of the vision functions aren't available in the cRIO image.

Mark McLeod
31-01-2014, 22:08
Similar issue here: http://www.chiefdelphi.com/forums/showthread.php?p=1329269

RaxusPrime
01-02-2014, 13:23
Here it is:

http://i.imgur.com/XYkhjvh.jpg

http://i.imgur.com/CT0dm89.jpg

RaxusPrime
01-02-2014, 17:02
I went to the source of the error and this was the block diagram of that IMAQ AVI12 vi. Here it is:

http://i.imgur.com/6kGusmQ.png

Alan Anderson
01-02-2014, 23:16
I think the Case block labeled "Get image from camera or file" is only supported when running the vision code on a PC target. It includes the WPI_CameraRead MJPG for Dashboard.vi function, which calls the IMAQ AVI2 Create function a few levels deeper. If you aren't running the code as part of the Dashboard, you shouldn't have that there.

It looks like you copied and pasted the vision example code instead of following the steps in Tutorial 8, Part 4.

RaxusPrime
02-02-2014, 23:18
I wasn't aware there was a tutorial, would you mind posting a link to it? By the way thanks for the information, this error has been stumping us for quite awhile now. :D

Alan Anderson
03-02-2014, 00:38
I wasn't aware there was a tutorial, would you mind posting a link to it?

When you launch LabVIEW, it opens the FRC 2014 Getting Started window. A number of tabs are available on the window's left side. The second one down is Tutorials. Click it and you will find a wealth of instructional help listed.

RaxusPrime
03-02-2014, 11:32
Awesome, thank you so much!