StimTracker software commands - how send 10ms pulse


Just purchased a StimTracker and using the interface to neuroscan EEG ( So seems like I should have 8 event marker/trigger bits with which to send events. What I do not fully understand is how to send event commands:

Say I want to send a 10ms pulse, so first thing I need to do is set the pulse duration. According to the cedrus documentation ( to set the time I need to use a “four byte binary value indicating the number in milliseconds” forming a “32-bit unsigned integer”. So if I use a random online decimal-to-binary converter for 10 I get:


But this is not a four byte binary value. To make this four bytes then I guess I need to add a bunch of 0’s. Also from what I read, bits are read from right to left so the 0’s should be placed on the left of 1010. So then to set the pulse duration to 10ms I would execute the cedrus stimtracker command:

mp + 00000000000000000000000000001010

Then say I want to have this 10ms pulse on channel 3 (out of the 8 possible event channels available to me). The documentation states “mh followed by two ‘bit mask’ bytes (a binary value). In the first byte, each bit corresponds to an output line. The second byte is currently ignored”. So if I understand things correctly in the first byte each bit represents the state of each channel - so to have all 8 channels off would be:
Then to turn on channel 3 (and remembering bits are read right to left) would be:
and then taking this and adding a second bit mask byte that is ignored, so will just make it all zeros:
means the command should ultimately look like this (since read right to left, the ignored byte is supposed to be second, so will add it to the left), so my cedrus stimtracker command:

mh + 0000000000000100

Is my understanding of this correct? If not, could someone else explicitly give their statements for 1) setting a pulse duration for some time (like 10ms), and 2) sending an event to one of the channels? It would be extremely helpful!

Thanks so much!

We’ve just created a new web page that illustrates how to use the RealTerm terminal emulation program to interact with StimTracker. Of course, please do not hesitate to post any follow up questions after checking out that page.