Be the first to rate this file! 113 downloads (last 30 days) File Size: 3.81 KB File ID: #24027

Custom triggers with Data Acquisition Toolbox (TM)

by Gautam Vallabha

 

07 May 2009 (Updated 15 Jul 2009)

Code covered by BSD License  

Example of a data acquisition GUI with custom triggers

Download Now | 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.

Required Products Data Acquisition Toolbox
MATLAB release MATLAB 7 (R14)
Other requirements Windows platform
Zip File Content  
Other Files license.txt,
sw_pretrigger.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
02 Jul 2009

Added copyright notice to MATLAB code file.

15 Jul 2009

Added trademark symbols as appropriate.

Tag Activity for this File
Tag Applied By Date/Time
daq Gautam Vallabha 08 May 2009 10:10:30
data acquisition Gautam Vallabha 08 May 2009 10:10:30
pretrigger Gautam Vallabha 08 May 2009 10:10:30
gui Gautam Vallabha 08 May 2009 10:10:30
example Gautam Vallabha 08 May 2009 10:10:30
acquisition Gautam Vallabha 08 May 2009 10:10:30
demo Gautam Vallabha 08 May 2009 10:10:30
synchronization Gautam Vallabha 08 May 2009 10:10:30
triggering Gautam Vallabha 08 May 2009 10:10:30
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com