View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Custom triggers with Data Acquisition Toolbox (TM)

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 3.81 KB File ID: #24027 Version: 1.2.0.1
image thumbnail

Custom triggers with Data Acquisition Toolbox (TM)

by

 

07 May 2009 (Updated )

Example of a data acquisition GUI with custom triggers

| Watch this File

File Information
Description

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.

Acknowledgements

This file inspired Pre Trigger Data Capture And Custom Triggering.

Required Products Data Acquisition Toolbox
MATLAB release MATLAB 7 (R14)
Other requirements Windows platform
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
02 Jul 2009 1.1

Added copyright notice to MATLAB code file.

15 Jul 2009 1.2

Added trademark symbols as appropriate.

01 Sep 2016 1.2.0.1

Updated license

Contact us