LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquiring data from daq-pad and saving video at the same time

I am trying to record data from my daq-pad at 100 samples per second. At the same time I am using a usb interfaced camera to record a video feed. The idea is that when i begin recording data i also begin recording the video feed.

The way I record the video  feed works fine in its own VI (I need it to record at 30fps and it does this just fine). But when I integrate it with the data record/capture VI the framing rate slows down to only 10 fps. I suspect this is because the VI  gets caught capturing the data from the daq-pad thus slowing down its ability to record the video feed. I was hoping you could give me some help with how to record the data at 100 samples per second and get the VI to capture 30 frames per second. Thanks in advance for anyone who helps out.

I've attached the VI that has both the data capture and the video capture already integrated.

0 Kudos
Message 1 of 4
(2,713 Views)
Hi,

I took a look at your code and the problem is that you have both the data acquistion and the image acquistion in the same loop.  Have you tried using parellel loops?  There is more information about this in the labview tutorials that are available online if you are unsure how to do that.  The problem is that you are doing a lot of things in that loop (acquiring data, doing some analysis, and writing to file), so you can't acquire images very fast because it depends on the speed of the loop iteration.  I hope this helps.

Have a great day,
GG
0 Kudos
Message 2 of 4
(2,691 Views)
GG,

Thanks for the help. I've tried making the parallel loops but I'm having some trouble with it. Could you possibly tell me shich tutorial has the how to on this stuff. Thanks.

-Paul
0 Kudos
Message 3 of 4
(2,671 Views)
Hi Paul,

Well it looked like the data acquistion and the image acquistion were independent so what you could do is just have two loops running.  If you want the loops to run independently then you will need to make sure that you don't have any wires going between the two loops.  The LabVIEW basics manual and class go into different technics for parrellel loops. 

GG
0 Kudos
Message 4 of 4
(2,652 Views)