Example Code

Acquire and Playback Synchronized Data and Video

Code and Documents

Attachment

Introduction

This VI shows you how to acquire analog input data and video, and then play the video and data back.  During playback, video and data will be aligned, so that the frame playing will correspond to the data collected during that frame.

data_video_acquire_playback.bmp

Steps to Complete

Set a location for the AVI file and your DAQmx physical channels.  Accelerometer data was used.

Additional Notes

You will need LabVIEW 2009 and Vision Acquisition Software to run this example.  You will also need a camera and data acquisition device.

This VI uses the DAQmx Property Node "ReadAllAvaliableSamples", so all of the data "chunks" may not be the same size, but they will align with the video playback.

Marti C
Applications Engineer
National Instruments
NI Medical

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
DaSh
NI Employee (retired)
on

Can you post again the vi? somehow it disapear

Dalia Russek
Senior Technical Support Engineer
National Instruments ISRAEL Ltd
josborne
Active Participant
Active Participant
on

This is a nice piece of code, but the two tasks (AI and Video) are not really syncronized electornically.  There is no triggering nor syncronization of the AI and Video clock.

http://www.medicollector.com
Contributors