Diff for "ResponseCollection" - Meg Wiki
location: Diff for "ResponseCollection"
Differences between revisions 25 and 26
Revision 25 as of 2009-09-16 13:12:37
Size: 3135
Comment:
Revision 26 as of 2009-09-16 13:13:46
Size: 3135
Comment:
Deletions are marked like this. Additions are marked like this.
Line 45: Line 45:
using the E-Prime !OnsetSignal mechanism. See the 'Triggers' section for this. using the E-Prime !OnsetSignal mechanism. See the [Triggers] section for this.

Response collection

Button boxes

We have two 4-button optical button boxes for use with the MEG. Usually all 8 outputs will be connected to the trigger box in the stimulus cabinet. The channels used are 9-16. These boxes can be used with the table insert for the MEG seat. They are a bit slippery and produce an audible click when pressed, and it might be good to put them on a mouse mat for these reasons (the mat prevents the table insert to resonate with the button click, making it a bit quieter). Alternatively a pillow can be used instead of the insert.

ImageLink(buttonboxes.pgn, //MegCBU, height=700)

Elekta Neuromag also supplied us with two button panels, which work in a different way. There's no button but a strip of material that has to be pushed down. The normal button boxes will click when switching, but these EN panels don't give any tactile feedback. They also have a tendency to come on again if the strip is pushed deeper, producing the sequence on-off-on-off-on for a single press and release.

These panels can also be used 'upside down' and will then detect when a finger is put down. This requires the subject to lift their finger in between responses.

Using the button boxes with E-Prime

To access the button presses from E-Prime the signals from the EN box will have to be connected to the parallel port. There are 5 input channels available on a parallel port.

To enable using button presses in E-Prime do:

1 - Enable the port device, adress &H378, 16 bits or &H379, 8 bits.

2 - Patch the output(s) from the EN box to one of the Status channels of the parallel port patch box. The status channels are S3, S4, S5, S6 and S7, where S7 is hardware inverted, which is corrected in E-Prime. The corresponding values for these channels in E-Prime are 4, 5, 6, 7 and 8 when used with the &H379 port adress.

The recommended way to use the port in E-Prime is to specify separate 'Port' objects in your script for input and output. The output port should have the &H378 adress and is used for sending triggers. The input port uses the &H379 adress and is used for receiving button presses.

Normally you don't need to specify the output port, as we usually send triggers using the E-Prime OnsetSignal mechanism. See the [Triggers] section for this.

Testing the button boxes

The EN trigger box on the desk has small LEDs next to each channel which show the incoming or outgoing signal. When a button is pressed, and the the box has been connected properly, one of the lights will come on. To check which channel is being activated on the PIO card or the parallel port there's a small program on the machine, called PortTest that will show the signals coming into either the PIO card or the parallel port.

Microphone

An optical microphone is permanently installed in the MSR, ready for use. It has a flexible arm to enable positioning close to the volunteer. Voice key responses are possible in MEG, although continuous HPI recording is recommended for this to enable correction for head movements.

CbuMeg: ResponseCollection (last edited 2015-01-19 16:09:24 by MaartenVanCasteren)