start
Obtain exclusive use of image acquisition device
Syntax
start(obj)
Description
start(obj)
obtains exclusive use of the image acquisition device associated with the video input objectobj
and locks the device's configuration. Starting an object is a necessary first step to acquire image data, but it does not control when data is logged.
obj
can either be a 1-by-1 video input object or an array of video input objects.
Data logging is controlled with theTriggerType
property.
Trigger Type |
Logging Behavior |
---|---|
|
Data logging occurs when the condition specified in the object's |
|
Data logging occurs immediately. |
|
Data logging occurs when the |
Use thetriggerconfig
function to configure the object's trigger settings.
When an acquisition is started,obj
performs the following operations:
Transfers the object's configuration to the associated hardware.
Executes the object's
StartFcn
callback.Sets the object's
Running
property to'On'
.
If the object'sStartFcn
errors, the hardware is never started and the object'sRunning
property remains'Off'
.
The start event is recorded in the object's事件日志
property.
An image acquisition object stops running when one of the following conditions is met:
The
stop
function is issued.The requested number of frames is acquired. This occurs when
FramesAcquired = FramesPerTrigger * (TriggerRepeat + 1)
where
FramesAcquired
,FramesPerTrigger
, andTriggerRepeat
are properties of the video input object.A run-time error occurs.
The object's
Timeout
value is reached.
Examples
Thestart
function can be called by a video input object's event callback.
obj.StopFcn = {'start'};