Data Acquisition Toolbox | ![]() ![]() |
Specify one or more voltage values that must be satisfied before a trigger executes
Description
TriggerConditionValue
is used when TriggerType
is Software
, and is ignored when TriggerCondition
is None
.
To execute a software trigger, the values specified for TriggerCondition
and TriggerConditionValue
must be satisfied. When TriggerCondition
is Rising
or Falling
, TriggerConditionValue
accepts a single value. When TriggerCondition
is Entering
or Leaving
, TriggerConditionValue
accepts a two-element vector of values.
Characteristics
Usage |
AI, Common |
Access |
Read/write |
Data type |
Double (or a two-element vector of doubles) |
Read-only when running |
Yes |
Values
Example
Create the analog input object ai
and add one channel to it.
The trigger executes when a signal with a negative slope passing through 0.2 volts is detected on channel 1.
set(ai,'TriggerChannel',ch) set(ai,'TriggerType','Software') set(ai,'TriggerCondition','Falling') set(ai,'TriggerConditionValue',0.2)
Properties
![]() | TriggerCondition | TriggerDelay | ![]() |