Custom triggers with Data Acquisition Toolbox (TM)
This m-file implements a simple data acquisition gui with multiple channels and custom triggering
It demonstrates how to:
1) Use nested functions to simplify data acquisition programs
2) Use a simple GUI (a couple of pushbuttons) to start and stop data acquisition.
3) Wait for an event/trigger (like a button press) and log pre-event or pre-trigger data from multiple synchronized channels.
4) Record pretrigger data based on custom criteria. In this m-file the triggering event is a button click. However, the event could be any custom criterion (e.g., the data amplitude is greater than a threshold *and* a toggle button is enabled).
Requires: the Data Acquisition Toolbox (TM) and the Winsound adapter. It does not depend on any hardware-specific capabilities.
Citation pour cette source
Gautam Vallabha (2026). Custom triggers with Data Acquisition Toolbox (TM) (https://fr.mathworks.com/matlabcentral/fileexchange/24027-custom-triggers-with-data-acquisition-toolbox-tm), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Test and Measurement > Data Acquisition Toolbox > Simultaneous and Synchronized Operations >
- Test and Measurement > Data Acquisition Toolbox > Data Acquisition Toolbox Supported Hardware >
Tags
Remerciements
A inspiré : Pre-trigger Data Capture and Custom Triggering
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.2.0.1 | Updated license |
||
| 1.2.0.0 | Added trademark symbols as appropriate. |
||
| 1.1.0.0 | Added copyright notice to MATLAB code file. |
||
| 1.0.0.0 |
