01-16-2012 04:01 AM
I have created an inspection with Vision Builder AI 2009 SP1. In it I load some pictures from the HDD and run some checks over it. It works fine. Then I have migrated it to LabView 2010, I get a message that the migration is successfull, but when I run the VI on LabView I get a fail status. I have been checking my program and I have found and error when I try to load the picture from file: Error -1074395995 occurred at IMAQ ReadImageAndVisionInfo
Possible reason(s): IMAQ Vision: File not found.
But I am not sure which file it refers to. At first I thought it was the picture I wanted to load, but I have checked the path and it is correct, so maybe it refers to another thing. What puzzles me most is that it works perfectly on Vision Builder and I have changed nothing in LabView, maybe it is a problem with the migration. Any clues?
01-17-2012 03:47 AM - edited 01-17-2012 03:47 AM
Come on people. Any ideas?
01-25-2012 05:33 AM
Ok. I have discovered where the error occurs. The problem is with the calibration. If I don't add a calibration to the picture, the migrated VI works fine, but if I try to load a calibration it doesn't work. Do I need to copy my calibration file into my program? Where exactly? It's driving me nuts I could really use some help.
01-25-2012 08:03 AM
Did you move your inspection to a different machine? Not sure why it wouldn't be able to find your calibration file if Vision Builder AI finds it. If you look in frame 1 of the Main VI, you will see a calibration folder path global variable that gets updated with a path. Make sure the path points to the location where your calibrations are saved. You can go to Vision Builder AI in Configuration Mode and select Tools>>System Resource Manager... to view all the calibrations saved and see where they are saved on disk. Make sure this corresponds with the path used in the LV generated code. If it doesn't let us know which OS you are using and where Vision Builder AI saves the calibrations and where the LV code is looking for them.
Hope this helps,
Brad
01-26-2012 05:33 AM
Hi Brad, thank you very much for answering.
I haven´t moved the inspection to another machine, so no problems there. As for the path I can't find the global variable on my VI. I guess you are refering to the initialization section of the VI, if not could you be more specific. I am using windows xp.
01-26-2012 08:30 AM
Here's a screenshot of what I'm talking about. Put a break point here and see what the path is and compare that with what Vision Builder AI is using (described where to find this in the previous post). You could find where this global is used to make debugging easier.
Hope this helps,
Brad
01-29-2012 03:18 PM
Ok. Obviously we have found the problem. I don't have that frame on my VI. So the question now is why is not created when I use the migration tool from Vision Builder. As for the path where the calibrations are stored, it is this one: C:\Documents and Settings\All Users\Application Data\National Instruments\Vision Builder AI\Calibration\