LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger timeout error - AVI Read Frame

Hi,
     I have written a VI to add overlay on existing AVI file. Everything works well upto 115 frames after that VI stops saying "Trigger Timeout" error.  The original AVI has 160 frames. I don't know why it hangs in the middle. Can anybody help me to solve this problem ? Please go through attached VI for further details.
Advance thanks.
 
Prasath.
 
Prasath M,
Emmeskay Systems Solutions Pvt. Ltd.
No: 20, Kannadasan Salai,
Chennai - 600 017.
mprasath@hotmail.com
0 Kudos
Message 1 of 7
(5,028 Views)

Hello,

Looking at your VI, I don't see any portion of it that uses triggering.  What is the error code associated with the error that causes your code to stop?  When you look at the "Number of Frames" output, what value is given?  IMAQ AVI Get Info, IMAQ Create and IMAQ Dispose could be moved out of the loop, reducing the processing time for each iteration of the loop.  Also, you are using the AVI Get Info function in parallel to the IMAQ AVI Read Frame function.  This could be done in series.  You should only have one instance of the IMAQ AVI Close VI for the AVI file that you open.  Then you should have another for the new AVI that you create. 

Try these steps and let me know if you have any additional questions.

Regards,
Scott R.
Applications Engineer
National Instruments

Scott Romine
Course Development Engineer
National Instruments
Message 2 of 7
(5,018 Views)
Hi Scott,
                      I tried as you said(expect one step) but still getting the same error. Please check the attached image for detail.  In this step I don't understand what you mean  "you are using the AVI Get Info function in parallel to the IMAQ AVI Read Frame function.  This could be done in series".  In the number of frames the output was 160.




Thanks for continuing your help.
Regards
Prasath


Prasath M,
Emmeskay Systems Solutions Pvt. Ltd.
No: 20, Kannadasan Salai,
Chennai - 600 017.
mprasath@hotmail.com
0 Kudos
Message 3 of 7
(5,013 Views)
Hello,
 
I tried running your code using an AVI and filepaths that were present on my system.  The program ran fine except for the fact that at the end of the code, you attempt to close three AVI files when you have only opened two.  What I was referring to earlier was the fact that you branch the AVI Refnum to go to the AVI Read Frame and the AVI Get Info functions.  You could wire the refnum to Get Info and then run its AVI Refnum output to the input of AVI Read Frame.  You would then only need to close that refnum once, after you have read the frame data.
 
What versions of NI-IMAQ and the Vision Development Module are you using?  The latest versions of these programs are 3.1.3 and 7.1.1, respectively. 
 
To update your Vision software, you can follow the link below to the product page for the Vision Development Module and then use one of the contact options listed at the bottom of that page.
 
Programmable Vision Functions
 
Let me know if you have any additional questions on this issue.
 
Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
Message 4 of 7
(4,989 Views)
Hi,
        I have modified the VI as per your instruction and tried with updated NI-IMAQ (2.6 to 3.1.3). But I am getting an improved kind of error related to directX, please check the attached image and VI.
 
Looking forward for your reply.
 
Thanks a lot for your support.
 
Regards,
Prasath.
 
Prasath M,
Emmeskay Systems Solutions Pvt. Ltd.
No: 20, Kannadasan Salai,
Chennai - 600 017.
mprasath@hotmail.com
0 Kudos
Message 5 of 7
(4,965 Views)
here I have attached the files.
 
thanks.
Prasath M,
Emmeskay Systems Solutions Pvt. Ltd.
No: 20, Kannadasan Salai,
Chennai - 600 017.
mprasath@hotmail.com
0 Kudos
Message 6 of 7
(4,964 Views)
Hello,
 
I tried running the attached VI and it worked without any problems on my system.  What are the specs on the computer that you are running this code on?  What version of DirectX do you have installed on that system?  Have you tried using a different AVI compression filter? 
 
Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
Message 7 of 7
(4,944 Views)