LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

imaq avi get info do not retrieve any info

Hi everyone, 

 

I have some trouble with the vision VI IMAQ AVI get info, 

 

everything was working well then I don't know what happened but the VI does not retrieve any information on any files, and I get the following error:

 

Error -1074395993 occurred at IMAQ AVI Open

Possible reason(s):

IMAQ Vision: File I/O error.

 

I need the framerate, Width, height and number of frame from this VI or else I cannot develop my application.

 

it only returns 0 on all values but the number of frames which is not correct 4294967295

 

I am thinking I might have broken the vision library.

 

Thanks for your help.

 

 

0 Kudos
Message 1 of 7
(2,754 Views)

I tried to repair the NI Vision installation but no chance...

0 Kudos
Message 2 of 7
(2,749 Views)

Sorry for the multiple message,

 

I have found why it did not work it was not the imaq get file info but the IMAQ AVI Open VI that does not like the path string given by the open/Create/Replace File VI.

 

If you have any idea why it would be appreciated.

 

Thanks.

 

0 Kudos
Message 3 of 7
(2,740 Views)

I still haven't found a solution to this problem.

You'll find enclosed a printscreen of the problem

 

Any Ideas?

 

Thanks

0 Kudos
Message 4 of 7
(2,723 Views)

Hey there;

 

I tried your code and got the same error... so I made a few modifications....

I initialized your error cluster and added a "read avi frame.vi" so that you can  actually see the first frame in the file you opened. You also need to close the avi file to prevent it from getting corrupted.

 

avi.png

 

Hope this helps..

 

Greetings

0 Kudos
Message 5 of 7
(2,708 Views)

Thanks MarisolM,

 

But It does not tell me why the IMAQ Avi Open.VI does not like the path given by the Open/Create/Replace File.vi

 

Best Regards,

0 Kudos
Message 6 of 7
(2,701 Views)

Hey; I was able to reproduce your error..

It seems that in your code you are leaving the file refference open, so then LabVIEW can't open the path in the OpenAVI.vi...

You can try this in order to make your VI work

 

 

 

avi.png

 

Good luck

0 Kudos
Message 7 of 7
(2,692 Views)