Specify delay value for data logging
Note: You cannot use the legacy interface on 64-bit MATLAB®. See About the Session-Based Interface to acquire and generate data on a 64-bit MATLAB.
You can define both pretriggers and postriggers. Pretriggers
are specified with a negative
while postriggers are specified with a positive
You can delay a trigger in units of time or samples with the
Pretriggers are not defined for hardware triggers or when
Pretrigger samples are included as part of the total samples
acquired per trigger as specified by the
If sample-time pairs are returned to the workspace with the
then the pretrigger samples are identified with negative time values.
AI, common to all channels
Read-only when running
The default value is zero.
Create the analog input object
ai and add
one channel to it.
ai = analoginput('winsound'); ch = addchannel(ai,1);
ai to acquire 44,100 samples per
trigger with 11,025 samples (0.25 seconds) acquired as pretrigger
ai.SampleRate = 44100 ai.TriggerType = 'Manual' ai.SamplesPerTrigger = 44100 ai.TriggerDelay = -0.25