| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Data Acquisition Toolbox |
| Contents | Index |
| Learn more about Data Acquisition Toolbox |
SamplesPerTrigger specifies the number of samples to acquire for each analog input channel group member for each trigger that occurs. If SamplesPerTrigger is set to Inf, then the analog input object continually acquires data until a stop function is issued or an error occurs.
The default value of SamplesPerTrigger is calculated by the data acquisition engine such that one second of data is acquired. This calculation is based on the value of SampleRate.
Usage | AI, common to all channels |
Access | Read/write |
Data type | Double |
Read-only when running | Yes |
The default value is set by the engine such that one second of data is acquired.
Create the analog input object ai for a sound card and add two channels to it.
ai = analoginput('winsound');
addchannel(ai,1:2);By default, a one second acquisition in which 8000 samples are acquired for each channel is defined. To define a two second acquisition at the same sampling rate:
set(ai,'SamplesPerTrigger',16000)
![]() | SamplesOutputFcnCount | Sending | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |