Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

possible reasons for error 1074396005 invalid avi session

Dear All,

 

I am working on creating and writing frames on to AVI files. I need to start writing frames up on record on command and close the AVI file up on record stop command. I am trying to read frames from an recorded video and write in to another AVI file.

 

But i am observing Error 1074396005 invalid avi session, whenever i run the code. I am using AVI2 VI's (IMAQ AVI2 Create, AVI2 Write and AVI2 close).

 

I am using LabVIEW 2013 SP1 and Vision development module versions.

 

Below is the block diagram for reading an avi file and writing in to avi file upon record on command (numeric control value 1 to case selector) 

Block diagram1.PNG

 

Block diagram for record off

Block diagram2.PNG

 

Below is the error observed:

avi2 error2.png

 

Kindly suggest what would be the possible reason for the error.

 

With regards,

Sri

Download All
Message 1 of 4
(6,099 Views)

Hi,

 

 

Any workaround on the above problem.

 

 

with regards,

sri

0 Kudos
Message 2 of 4
(6,077 Views)

Might be good if you can post the code instead of screenshots.
-If session was closed or aborted due to some reason you should get this error.

-Multiple times you are creating the session inside the loop with same avi session, is it required?

-Are the images added to the avi file?

Thanks
uday
Message 3 of 4
(5,970 Views)

Hello Sir ,

Your block diagram is Labview example right ? I'm doing the same thing. Did you fix it. If yes can you share information. 

 

Thanks.

0 Kudos
Message 4 of 4
(3,427 Views)