File Exchange

image thumbnail

Pre-trigger Data Capture and Custom Triggering

version (2.75 KB) by Isaac Noh
An example of pre-trigger data capture and custom triggering using the session-based interface.


Updated 01 Sep 2016

View License

This submission illustrates how to capture pre-trigger data from a data acquisition system, and it allows the user to define a custom trigger condition for the system.
This example uses an analog input channel as the capture channel and a digital input channel as the trigger channel.

Cite As

Isaac Noh (2020). Pre-trigger Data Capture and Custom Triggering (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)


Thanks for this file, but using the legacy interface I can record pre-trigger data with literally around 8-10 lines of code. Doing the same thing in session-based DAQ seems ridiculously complex in comparison - unless I am missing something here?

Mathworks, can we please have an easier way to record pretrigger data in session-based daq? This is a very common requirement among academic colleagues.


Awesome!!!! work...


Updated license

Updated comments

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux