User`s guide
islogging
Purpose Determine w hether video input object is logging
Syntax bool = islogging(obj )
Description bool = islogging(obj ) returns true if th e video input object obj is
logging data, otherwise
false. A video input object is logging if the
value of its
Logging property is set to 'on'.
If
obj is an array of video input objects, bool is a logical array where
each element in
bool represents the corres ponding element in obj.
If an object in
obj is logging data, i slog ging sets the correspo n ding
element in
bool to true,otherwisefalse. If any of the video input
objects in
obj is invalid, islogging returns an e rror.
Examples Create a video input o bject.
vid = videoinput('win video');
To put the video input object in a logging state, start acquiring data.
The example acquires 50 frames to increase the amount of time that
the object remains in logging state.
set(vid,'FramesPerTrigger',50)
start(vid)
When the call to the start function returns, and the object is still
acquiring data, use
islogging to check the state of the object.
bool = islogging(vid)
bool =
1
Create a second video input object.
vid2 = videoinput('wi nvideo');
12-31