LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

video + data aquisition

Hi,
 
I have a labview program set up to display a real time video image (using IEEE 1394) and at the same time I am trying to aquire data with my NI Daq card. The program is very choppy. Is this a limitation of my computing power, or is it just badly written code?
 
Thanks.
 
Sunny
0 Kudos
Message 1 of 6
(3,272 Views)
Sunny,
 
Could be a combination of both.  I am assuming that you are running on a Windows PC.  Use good old Windows Task Manager (Control+Alt+Del) and select performance.  If your CPU utilization is over 90% most of the time then you are out of CPU.  While you are there look at how much memory you are using.  Maybe adding RAM would help.
 
Video is very CPU intensive and if you are trying to do real time then you are probably trying to run as fast as the PC will let you.  Do you need real time?  Inserting a small 100 mSec pause can reduce CPU utilization and smooth out the program.  Pauses are good!
 
The second way to make improvements is to use events instead of polling for data.  I don't know enough about what you are trying to do but let me know if this helps.
 
Matt

Message Edited by mfitzsimons on 10-31-2005 05:44 PM

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Message 2 of 6
(3,270 Views)
Thanks a lot! I will definately try inserting a pause, never thought about that.

Thanks.

Sunny
0 Kudos
Message 3 of 6
(3,264 Views)
I need a program to video aquisition.
0 Kudos
Message 4 of 6
(3,202 Views)
I need a program in Labview to adquire images and post it in a file.
 
0 Kudos
Message 5 of 6
(3,201 Views)
Hey devotees,
 
There are example programs that come with the IMAQ driver software that show how you can acquire images and save them to file. There is one specifically that you might want to take a look at called "Grab and Save to AVI.VI", and this VI will acquire images and save them all to an AVI file, which saves them like a video clip. If you download the NI-IMAQ driver and install it, you can find the above example in the NI Example Finder and then Searching for AVI.
 
I hope this answers your question. There are other examples that also come with the driver software as well, so maybe they too will help. Good luck in your application.

Regards,
DJ L.
0 Kudos
Message 6 of 6
(3,171 Views)