Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot read data from avi file

Solved!
Go to solution

Hi,

 

I have written timestamp and exposure data to an AVI file, but I cannot get that data out of the file using the avi read function.  I am attaching code for reading the video as well as a 7 frame snippet of video.  If you open the video in a Hex editor and search for "Time,"  you can see that the data was written to the file, but I just get empty strings when I try to read it back as in the attached VI.  Am I doing something wrong?

 

I am using LV 8.0.1, Vision 7.1.1, and IMAQ 4.0.

 

Thanks,

Greg

Download All
0 Kudos
Message 1 of 6
(4,370 Views)

UPDATE:

 

I tried this software on a colleague's computer and it worked fine.  The only difference between his installation and mine is that he is using IMAQ 3.7

 

Should I downgrade?

 

Greg

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

Hi Greg,

 

I was able to run your VI with the AVI successfully.  It is not dependent on the version of Vision that you have since the AVI VIs are part of NI-IMAQ.  I ran it successfully in LabVIEW 8.6 with IMAQ 4.3.  I definitely would not recommend that you downgrade.  I would recommend that you either try repairing your installation of IMAQ or you upgrade.

 

Wes Pierce
Principal Engineer
Pierce Controls
0 Kudos
Message 3 of 6
(4,331 Views)

Wes,

 

Thanks for the advice.  I tried a repair of IMAQ, IMAQdx, and IMAQ IO.  The problem persists.  I cannot afford to upgrade.  If you have any other ideas, please let me know.

 

Thanks,

Greg

0 Kudos
Message 4 of 6
(4,316 Views)

Hi Greg,

 

IMAQ is a free installation.  It is part of an installer called Vision Acquisition Software, which includes three drivers, only one of which requires a license.  If you are not using IMAQdx (FireWire, USB, and GigE cameras) just don't activate, and only that feature will be unavailable.  The AVI functions are part of IMAQ, which is not licensed, therefore it is free.  Be sure to check the Knowledge Base article linked below to make sure you get a compatible version of the software for your version of LabVIEW.

 

KnowledgeBase 3YMCCQ0F: NI-IMAQ and NI-IMAQdx Compatibility with Different LabVIEW Versions

Wes Pierce
Principal Engineer
Pierce Controls
0 Kudos
Message 5 of 6
(4,303 Views)
Solution
Accepted by topic author GFDGreg

Thank you for your help.  

 

I finally got this fixed.  I tried upgrading IMAQ like you said, repairing IMAQ and LabView installations, and deleting and reinstalling all my NI software.  None of this helped.

 

By this time, I was having a bunch of other problems with NI-MAX, got totally fed up, formatted the hard drive, and reinstalled windows, LabView and all the vision stuff.  In the process, I found out that I had bad RAM and replaced that too.

 

Almost all of the problems are gone now, including this one.

 

Thanks, 

Greg 

0 Kudos
Message 6 of 6
(4,262 Views)