Hi,
Unless we do things *very* different, a “Stimulus trigger” is exactly the same as a “Response trigger”, which in E-Prime seems to mean, normally, a value between 1 and 255. PyCorder is Brain Products, yes? So I suspect that you, like most of us, are indeed aiming to send a byte over parallel. Three things that happen a lot:
· One normal thing that will make the trigger come out wrong is by having values go higher than 255
· Another is that the signal isn’t reset to 0. Say, you send a trigger of 25, manually, then later on 25 happens again: if it’s not reset to 0, there’s only the first. Quick and dirty solution, wait 2 ms, send a writeport outport, 0. Better: send .onsignaldata and .offsignaldata (or some such code, I keep forgetting and have to copy it myself from previous studies).
· Finally, sending writeport outport, 25, then waiting 1, then writeport outpot, 22 may still give unintelligible results if the amplifier uses a sampling rate lower than 1000 Hz (because the two values get to be scrambled into a new byte!).
These are pretty much the normal cases of something going wrong with triggers, anything else is likely in your own design (especially if the other triggers are going fine). My suggestion with triggers:
Say, you have a reaction time paradigm. There’s a stimulus – stimulusSlide – which shows until response. Turn off off-sync (default). Say, you have 20 conditions in a 4x5 design.
1. You set stimulusslide.onsetsignaldata to be 1-20 depending on your condition
2. You set stimulusslide.offsetsignaldata to be 21. That’s the RT.
3. After the stimulusslide, you add the code
Sleep 5 (to be sure it doesn’t interfere with the previous!)
If StimulusSlide.ACC = 1 then Writeport outport, 22 else Writeport outport, 23
Sleep 5
Writeport outport, 0
Now you have pretty much everything a normal experiment needs. Make sure you don’t reuse triggers (otherwise, we have other tricks for that).
Hope that helps!
Best,
Michiel
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/1795b976-a487-40c4-8892-bf2cc148c6a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.