Code covered by the BSD License  

Highlights from
IMAQPLOT - Preview video data using callbacks

4.0

4.0 | 3 ratings Rate this file 11 Downloads (last 30 days) File Size: 2.49 KB File ID: #5438

IMAQPLOT - Preview video data using callbacks

by David Tarkowski

 

08 Jul 2004 (Updated 28 May 2009)

Demonstration of previewing Image Acquisition Toolbox video using Handle Graphics and callbacks.

Editor's Notes:

This file was a File Exchange Pick of the Week

| Watch this File

File Information
Description

IMAQPLOT is a simple demonstration of previewing video data using the toolbox's TimerFcn callback. IMAQPLOT also allows users to integrate the video preview into any MATLAB GUI. These are capabilities that are present in the toolbox's PREVIEW command, but are presented here as a demonstration of TimerFcn callback.

Using toolbox callback properties, you can configure a video input object to generate a live image plot display.
 
Do you want a basic preview window created for you? Simply call:
 
    obj = videoinput('matrox', 1);
    obj.TimerFcn = @imaqplot;
    obj.TimerPeriod = 0.1;
    obj.FramesPerTrigger = Inf;
    start(obj)
 
Do you want to add a preview window to an existing GUI? Simply provide IMAQPLOT a handle to an image object and it will update it for you:
 
    obj = videoinput('dt', 1);
    obj.TimerFcn = {@imaqplot, hImage};
    obj.TimerPeriod = 0.1;
    obj.FramesPerTrigger = Inf;
    start(obj)

Required Products Image Acquisition Toolbox
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
19 Apr 2005 sidahmed sidha

hello;
i am testing your M-file and matlab give me the following message:
??? Error using ==> imaqplot
IMAQPLOT is unable to plot correctly.
No appropriate methods for function isrunning.

Warning: The TimerFcn callback is being disabled.
To enable the callback, set the TimerFcn property.
(Type "warning off testmeas:callback:errInTimerFcn" to suppress this warning.)
can i know why?
thank you

30 Oct 2006 Winston Hegemur

thank you

30 Nov 2006 Cullen Newsom

yes, thanks indeed.
-Cullen

07 Jan 2007 mora er

i am e new comer in matlab programming, and i prefer something in live action, like live video in yours. help me the other please by posting another live video.thank you..

Please login to add a comment or rating.
Updates
28 May 2009

Changed the description to more accurately reflect the purpose of the submission.

Tag Activity for this File
Tag Applied By Date/Time
example David Tarkowski 22 Oct 2008 07:26:38
application David Tarkowski 22 Oct 2008 07:26:38
image acquisition toolbox preview window David Tarkowski 22 Oct 2008 07:26:38
hg David Tarkowski 22 Oct 2008 07:26:38
plot David Tarkowski 22 Oct 2008 07:26:38
graphics David Tarkowski 22 Oct 2008 07:26:38
handle David Tarkowski 22 Oct 2008 07:26:38
example Ruchi 08 Mar 2010 06:01:07

Contact us at files@mathworks.com