02-18-2013 11:44 PM - edited 02-18-2013 11:45 PM
Can anybody help me solve the error that occured while executing the attached program code.
Error -1074395992 occurred at IMAQ ReadFile
Possible reason(s):
IMAQ Vision: File access denied.
Thank you.
02-18-2013 11:54 PM
Check you path, this usually happens when you give a folder path instead of a file path.
In your example I think the way you deal with path is a bit messy, you need a reference path for image and maybe subdirectories for temp images, main image and another one to maybe save images.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-19-2013 01:08 AM
Thank you for your kind response.
I did the modification you mentioned. but now itsays "Error -1074395997 occurred at IMAQ ReadImageAndVisionInfo.
Possible reason(s):
IMAQ Vision: Invalid parameter."
02-19-2013 01:52 AM
Well there are only 2 parameters you feed into that VI the file path and the image buffer, one of the two has a problem, I bet it's the path.
Good luck
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-19-2013 03:26 AM
Hello ymadhuri
Can you pls uplaod the vi in LV2011 format so that i can have a look?
thnx
02-19-2013 07:11 AM
I attached the 2011 version of the vi.
02-19-2013 07:59 AM
The actual program is in the following attachment. The previous program attached is used to perform the same function but with input images read from a folder. But the actual rquirement is acquiring images directly from a camera.
I am using my laptop webcamera.
When I run the "Process acquired images" individually it is working fine but when I run it inside the main Vi ,the "Processed image" on the front panel is not showing the expected image. Instead it is displaying the "Acquired image" from "Process acquired image" sub vi.
Can you please help me rectify the problem.
Thank you.
02-21-2013 07:57 AM
Hello Ymadhuri...
I guess it has something to do with path. Check your control IMAGE PATH. When i click the icon there comes a window to save the image and not to load the image. I guess you should change it so that IMAQ Read can read teh file
02-21-2013 08:56 AM - edited 02-21-2013 09:17 AM
The error you mentioned. actually that terminal comes from the front panel image display of "process acquired image vi"
So I think it should be able to display the picture in the main vi. But i tried to follow your correction and placed the picture display after imaq read file, still no luck.