Triggering to Stimtracker

189 views
Skip to first unread message

jeno...@usf.edu

unread,
Feb 10, 2016, 11:30:40 AM2/10/16
to E-Prime
Hello,

I am trying to send triggers to an EEG system through StimTracker (http://cedrus.com/support/stimtracker/tn1411_eprime.htm). I typically send triggers through a parallel port directly to the EEG system using this type of script:

Writeport &H378, c.GetAttrib("Trigger")

with the specific triggers listed in the attribute Trigger.

I have seen the example script that Cedrus provides for triggering with E-Prime, but it is a bit over my head. Does anyone have any example code that is a bit more simplistic, or any suggestions on how to change the code above to work? Is there a simple way to change this from writing to a parallel port to writing to a  USB port (StimTracker connects through USB)?

Thank you!
Jen O'Brien

David McFarlane

unread,
Apr 11, 2016, 3:44:02 PM4/11/16
to e-p...@googlegroups.com
Not answering your question, just adding a couple thoughts in case
anyone stumbles across this ...

Although StimTracker connects to a USB port, it acts as a virtual serial
port. Thus, E-Prime interacts with it as an ordinary serial port, as
explained in the StimTracker documentation.

The example program from Cedrus uses some intricate code to construct
the command to StimTracker, then outputs it using the E-Prime
Serial.WriteByes method in inline code. Under some circumstances, and
with some cleverness, you might be able to construct the StimTracker
command from attribute references, and output it using Task Events
(using the WriteBytes action of the Serial device) instead of inline code.

(I base this solely on reading the info from the supplied link, I have
never used the StimTracker myself.)

-- David McFarlane
Reply all
Reply to author
Forward
0 new messages