Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

sequential reading of image and gray scale plot

Solved!
Go to solution

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.

 

 

0 Kudos
Message 1 of 9
(4,802 Views)

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.

Message 2 of 9
(4,792 Views)
See what is the file path returned? How are you sequentially reading it?
0 Kudos
Message 3 of 9
(4,772 Views)
Solution
Accepted by topic author viswa

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,

Owen.S
Applications Engineer
National Instruments
Message 4 of 9
(4,761 Views)

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.

 

 

0 Kudos
Message 5 of 9
(4,754 Views)
Use a flist file vi, build path, for loop and inside this use the read vi
0 Kudos
Message 6 of 9
(4,748 Views)

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,

 

 

Owen.S
Applications Engineer
National Instruments
0 Kudos
Message 7 of 9
(4,725 Views)
Hi Owen,
Could you put the code in LV8.2? i cant open in LV2009.
0 Kudos
Message 8 of 9
(4,705 Views)

Hi Viswa,

 

Sorry about that 😄 here you go.

 

Thanks,

Owen.S
Applications Engineer
National Instruments
0 Kudos
Message 9 of 9
(4,703 Views)