Cedrus provides two code samples for Matlab users. Both samples use the VCP (Virtual COM Port) USB driver; timing precision is about 5 to 6 milliseconds.
Matlab 2019b or later is needed. Both samples will scan all available virtual serial port to find a compatible device. They were developed with Matlab version R2020b Update 4 (9.9.0.1570001).
The first code sample allows you to send event markers via all of our current products:
It also works with the original StimTracker ST-100 model.
Event markers are sent asynchronously. For example, if you want send a 20ms pulse, your Matlab code does not have to pause for 20ms.
The second code sample handles obtaining key press information from:
It can send event markers as well.
Last revision: May 9, 2025
PRODUCTS
SUPPORT
STAY IN TOUCH
© Copyright 2026 Cedrus Corporation, P.O. Box 6309, San Pedro, CA 90734 - USA
Phone: +1-310-548-9595. Send us an email
qwerasdf