Re: !!!help!!! synchronization camera and measurements



Hello Dan,

If you want to display the live video feed all the time but only write certain
frames to the AVI it's only a matter of programming.  You will need an
outer while loop that is constantly reading images and displaying them. 
Then you will also need a case structure within the while loop where the AVI
write frame VI will be.  The Boolean input to the case structure will then
be determined from your data acquisition device's trigger.  You will need
to read the trigger line and when it triggers execute the correct state of the
case structure to save that current frame in the AVI.  Please note that
this methodology for saving an image by reading a trigger line on a DAQ device
is going to be very non deterministic.  Since you do not have the ability
to trigger the camera the frame you are saving might not be the same frame the
data corresponds too.  The trigger and data acquisition will happen in
real time but reading the trigger for purposes of saving images to the AVI file
will happen when ever windows executes that part of the code.  So as long
as it does not have to be real accurate this might work.

So I assume that with each frame you are also writing a time stamp with the
image.  To then perform a "seek" on the images according to the
timestamp it will just be a matter of iterating through each image, extracting
out the data, then comparing that data to the timestamp you need.  As soon
as it finds the correct timestamp then update an IMAQ display with the correct
image.  I hope this information helps.  Thanks and have a great day.

Regards,
Mark T
Applications Engineer
National Instruments 
.



Relevant Pages

  • TMediaPlayer problem
    ... I'm stepping through it ... frame and perform various processing on it. ... It seems that Step does not always display the AVI on the form. ...
    (borland.public.delphi.language.objectpascal)
  • Re: 30 GB Video Ipod
    ... bright light after the backlight turns off the streak goes away. ... the display error does not appear to be there in the ... just don't see how those streaks would be there while lit with ccfl. ... The LCD display, and touchscreen glass are fitted together into a thin plastic 'frame' that completely surrounds the four edges, and it is to this frame that the case is clipped. ...
    (sci.electronics.repair)
  • lengthy hardware triggered frame acquisitions
    ... can be achieved using a 'manual' trigger in Matlab. ... frame can be acquired approximately every 34 milliseconds. ... display 'start of while loop'; toc; ... elapsedTime = elapsedTime + toc; ...
    (comp.soft-sys.matlab)
  • Re: Aspect ratio explanation needed, please!
    ... The source material was 1.8 anamorphic, the output was xvid ... Three different players: ... needed to set aspect to 16:9, then display was perfect ... My surprise is that an xvid encoded, filled 720x480 frame ...
    (rec.video.desktop)
  • Re: Seeking Postion in an .avi file
    ... single rec chunk always have sound data first followed by video data.Do I ... >> resides in an .avi format file. ... taking into consideration the bitrate for audio (if ... > audio) and frame rate for video (which is constant for AVI, ...
    (microsoft.public.win32.programmer.mmedia)