| 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 |
You can find out how many triggers executed by returning the value of TriggersExecuted. The trigger number for each trigger executed is also recorded by the Data.Trigger field of the EventLog property.
Usage | AI, AO, common to all channels |
Access | Read-only |
Data type | Double |
Read-only when running | N/A |
The default value is zero.
Create the analog input object ai and add one channel to it.
ai = analoginput('winsound');
ch = addchannel(ai,1);Configure ai to acquire 40,000 samples with five triggers using the default sampling rate of 8000 Hz.
set(ai,'TriggerRepeat',4) start(ai)
TriggersExecuted returns the number of triggers executed.
ai.TriggersExecuted
ans =
5![]() | TriggerRepeat | TriggerType | ![]() |

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 |