User`s guide

islogging
17-51
islogging
Determine whether video input object is logging
Syntax
bool = islogging(obj)
Description
bool = islogging(obj) returns true if the 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 corresponding element in obj. If an object in obj is logging data,
islogging sets the corresponding element in bool to true, otherwise false. If any of
the video input objects in obj is invalid, islogging returns an error.
Examples
Create a video input object.
vid = videoinput('winvideo');
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.
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 =