| Data Acquisition Toolbox™ | ![]() |
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.
Usage | AI, Common to all channels |
Access | Read/write |
Data type | Double (or a two-element vector of doubles) |
Read-only when running | Yes |
The default value is zero.
Create the analog input object ai and add one channel to it.
ai = analoginput('winsound');
ch = addchannel(ai,1);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)
![]() | TriggerCondition | TriggerDelay | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |