10-16-2009 06:57 AM
Hi all,
I have attached a VI written in LV 8.2 version. All i am trying to do is reading sequence of images from a specified location in PC and obtaining pixel value for those set of images and want to save it to a file. When i run the vi it says error--1074395995 IMAQ read file not found.
Any help would be appreciated.
Solved! Go to Solution.
10-16-2009 09:59 AM
I guess, the problem is not vision-related. Are you sure that you have file 2Hz200010 in folder C:\Documents and Settings\Administrator\Desktop\Modulation speckle depth for RHOE at low frequency\2Hz2.8Vpk-pkRHOE\ ?
Probably you have forgot extension? .bmp or .png?
Also you can use Check if File or Folder exists.vi to be sure that file really exists.
Andrey.
10-19-2009 02:38 AM
10-19-2009 04:53 AM
Hi Viswa,
As Andrey says, put the extension on the end and it works. e.g, change:
"C:\Documents and Settings\Administrator\Desktop\Modulation speckle depth for RHOE at low frequency\2Hz2.8Vpk-pkRHOE\2Hz20001" to
"C:\Documents and Settings\Administrator\Desktop\Modulation speckle depth for RHOE at low frequency\2Hz2.8Vpk-pkRHOE\2Hz20001.jpg"
or whatever file format your pictures are.
Thanks,
10-19-2009 06:32 AM
Hi all,
The problem has been resolved. I used file dialog and a string which was converted to path for calling sequentially images.
But i was thinking of giving instruction once to read all images . Does anybody have idea? because IMAQ read vi can call only one image at a time.
10-19-2009 07:07 AM
10-20-2009 05:20 AM
Hi Viswa,
I have written some example code that may help you. You will need to tweak it to work with your setup. It gets the string then adds the iteration count to the end. Hence the paths will read:
"C:\Documents and Settings\Administrator\Desktop\Modulation speckle depth for RHOE at low frequency\2Hz2.8Vpk-pkRHOE\2Hz20000.txt"
"C:\Documents and Settings\Administrator\Desktop\Modulation speckle depth for RHOE at low frequency\2Hz2.8Vpk-pkRHOE\2Hz20001.txt"
C:\Documents and Settings\Administrator\Desktop\Modulation speckle depth for RHOE at low frequency\2Hz2.8Vpk-pkRHOE\2Hz20002.txt"
etc.
Hope this example helps.
Thanks,
10-20-2009 06:30 AM
10-20-2009 06:33 AM
Hi Viswa,
Sorry about that 😄 here you go.
Thanks,