From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-10-2012 02:29 PM
Hi I am using a Basler GigE camera with Labview 2010. I am trying to capture a video. I can change the frame capture rate in NI MAX. In my attached program, I collect a specified number of frames and save them as an AVI. However, the timer tells me it takes longer than it should. So for example if I collect 200 frames at 10 frames per second, it should take 20 seconds to collect video, correct? It takes my program longer. Does anyone know why? Also, because of the time discrepancy, I do not know if the program is collecting the correct frames? Thank you!!
04-10-2012 03:03 PM
Before an answer can be given, could you post the basler icd file. You can find it in C:\Documents and Settings\All Users\Documents\National Instruments\NI-IMAQdx\Data.
04-10-2012 03:46 PM
This issue has been discussed several times, see e.g. here. You can also start a search on how to grab images from a camera and write them to disk (in your case: avi). Good link for this is NI's Vision Forum.
Basically, you shouldn't use one loop for continous data acquisition and writing to the disk. Setup two loops (1 for IMAQ, 1 for AVI). This should solve your issue.
Depending on the compression filter you use you might still observe, that writing the the AVI will take longer than the IMAQ procedure.
Hope this helps.