LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

imaq

I should acquire real time images and recognise the pattern and give an audio output.

I want to replace the target image load with camera acquisition.
When I tried I encountered the following problem."Error -1074395989 occurred at IMAQ ReadFile
Possible reason(s):

IMAQ Vision: Unable to read data".
I tried to save the acquired images using IMAQ Write 2 and then connected it to IMAQ read 
file. Still the same error.
I do not understand what is causing the problem.

Thanks for your help.

0 Kudos
Message 1 of 6
(3,051 Views)

Good effort, your code is clean and well documented!

 

However there were a few mistakes, I corrected some of them , see below :

 

Untitled.png

 

First there are only 3 images in your image folder and you try to read 4.

Then the way you build the image path is slightly incorrect, it use to produce a path ending like "~\Temp1.png" instead of "~\Temp\1.png", that's why the read image info VIO was returning an error.

Another thing you could do to improve your code is to get the list of PNG file in the "Temp" folder and then index the for loop on that array instead of linking a constant.

 

Hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 6
(3,036 Views)

Thankyou for your response.

I want the main vi modified.vi to be fixed.

I want to acquire real time images using the camera.

I tried to save the acquired images using imaq write file 2 and then read them using imaq read file 2.

But it shows error.

Please help me fix it.

0 Kudos
Message 3 of 6
(3,028 Views)

I think the original developper gave you a hint : 

 

Untitled.png


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 6
(3,024 Views)

I have the vision acquisition express to replace.

I am trying to save the acquired images and then read them.

Iam facing problem there only

.

0 Kudos
Message 5 of 6
(3,012 Views)

Sorry I don't know how to use the Express VIs... can't help you with that.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 6
(3,010 Views)