From brandon_cernicky at yahoo.com Thu Aug 2 12:23:45 2001 From: brandon_cernicky at yahoo.com (Brandon Cernicky) Date: Thu, 2 Aug 2001 05:23:45 -0700 Subject: Eprime Digest - 07/29/01 Message-ID: The SoundOut.Filename property is read/write at runtime. Any time the SoundOut.Filename property changes, a subsequent call to SoundOut.Load needs to occur prior to calling SoundOut.Run/Play. Note that at runtime, the value for SoundOut.Filename must point to a valid .wav file. The [SoundFile] nomenclature for referencing attributes is a shorthand way for E-Studio to call c.GetAttrib("SoundFile") at runtime. Using the [attrib] brackets for attribute references at runtime will result in a runtime error because the SoundOut object will not translate that into the c.GetAttrib method. Therefore, except for some specific paradigms, it is probably best to set the SoundOut.Filename to an attribute [SoundFile] in E-Studio. Then, if the paradigm requires a different value than the value currently in the context, the author simply needs to call c.SetAttrib("SoundFile"), "sound.wav". Then, the you need not worry about calling the SoundOut.Load method (since E-Studio sets that up when an [attrib] is specified for the SoundOut.Filename). Note that the exact specifics would also be true for the ImageDisplay.Filename property as well (with images versus sounds of course). -Brandon __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ From christoph.lehmann at unifr.ch Fri Aug 17 14:23:14 2001 From: christoph.lehmann at unifr.ch (Christoph Lehmann) Date: Fri, 17 Aug 2001 16:23:14 +0200 Subject: e-prime triggered by MR scanner Message-ID: Dear e-prime users Is there any one who has experience with MR-triggered (via the paralleport) stimulus-presentation. We would like to have each (!) stimulus presentation triggered by our Siemens MR Scanner. Since the scanner usually sends a TTL impulse for every slice, one should be able to count each pulse at the port in the background until the first slice is measured again and then present the next stimulus. If there is anyone who could help us, we would be very grateful. Thanks a lot Sincerely Christoph L ------------------------------------------ University Hospital of Clinical Psychiatry Department of Psychiatric Neurophysiology Neuroimaging Group Bolligenstrasse 111 CH-3000 Bern 60 Switzerland Phone : ++41 31 930 93 83 E-Mail: lehmann at puk.unibe.ch From eclaus at iupui.edu Fri Aug 17 20:09:05 2001 From: eclaus at iupui.edu (Eric Claus) Date: Fri, 17 Aug 2001 15:09:05 -0500 Subject: e-prime triggered by MR scanner In-Reply-To: <811D3A3A3FBFD211B0D600105AA7D6D504C206@EEG_SERVER_B> Message-ID: Cristoph, I am not sure how you are sending the pulses, but if you can verify that you are sending a TTL through a parallel cable this may help. 1. Make sure your port is in Standard mode (this can be changed in BIOS when you restart). On Gateway computers, the setting is Output only. Do not use EPP, ECP, or Bi-Directional 2. To read input, the TTL must come in on any of the following pins: 15, 13, 12, 11, 10 (11 is inverted). In e prime, you will have to identify which bit to read, so you will need a bit to pin map. has a bit to pin map that we used. 3. You also will need a ground wire. The parallel cable we used had a separate ground, but within the cable itself, pins 18-25 are ground wires. 4. After you are sure you can receive a TTL through one of the pins mentioned above (10, 11, 12, 13, 15), then you can proceed to the programming. 5. In the Structure window of E prime, click on the top of your experiment structure (This should say Experiment (experiment name). Go to the Devices tab, Click Add, and click on Port. Next, configure the port by double clicking on the Port icon. Make sure the Address is set to &H379 (although you should check this in your computer manuals to make sure this is the correct port address), Size 8, Invert No, Mask -1. 6. After you have added and configured your port, you should be able to trigger a stimulus without too much problem. Something I have used to test this is a simple "experiment" that shows a blank screen and a fixation cross. When the TTL pulse is received, the fixation cross appears until the subject responds, leaving a blank screen again. Here is how it is set up. I have the TrialProc with a Target module and a Fixation module (both TextDisplay's). Under the Properties of the Target, click on Duration/Input tab, and under Input Devices, Add a Port device. For the Allowable Input, put 'any' or one of the bits that correspond to the pin your signal is being sent through (use map from #2). This will tell e prime to read the signal through any bit or the specific bit you choose. Time Limit should be infinite, and Input Action should be set to Terminate. Also, under the Duration setting, you should set this to a large number, as a small number (ie 1000) would cause the blank screen to terminate before the TTL pulse is received. As long as you have a something on the TrialProc before the actual stimulus, you should be able to display stimuli each time a TTL pulse is received. Hope this helps. The E prime email support was very helpful with this problem and usually responded within the day, if you are still having trouble. Eric ------------------- > Dear e-prime users > Is there any one who has experience with MR-triggered (via the paralleport) > stimulus-presentation. We would like to have each (!) stimulus presentation > triggered by our Siemens MR Scanner. Since the scanner usually sends a TTL > impulse for every slice, one should be able to count each pulse at the port > in the background until the first slice is measured again and then present > the next stimulus. If there is anyone who could help us, we would be very > grateful. > Thanks a lot > Sincerely > Christoph L > > ------------------------------------------ > University Hospital of Clinical Psychiatry > Department of Psychiatric Neurophysiology > Neuroimaging Group > Bolligenstrasse 111 > CH-3000 Bern 60 > Switzerland > > Phone : ++41 31 930 93 83 > E-Mail: lehmann at puk.unibe.ch > > > Eric Claus, B.S. Department of Psychology School of Science Indiana University-Purdue University at Indianapolis From brandon_cernicky at yahoo.com Thu Aug 2 12:23:45 2001 From: brandon_cernicky at yahoo.com (Brandon Cernicky) Date: Thu, 2 Aug 2001 05:23:45 -0700 Subject: Eprime Digest - 07/29/01 Message-ID: The SoundOut.Filename property is read/write at runtime. Any time the SoundOut.Filename property changes, a subsequent call to SoundOut.Load needs to occur prior to calling SoundOut.Run/Play. Note that at runtime, the value for SoundOut.Filename must point to a valid .wav file. The [SoundFile] nomenclature for referencing attributes is a shorthand way for E-Studio to call c.GetAttrib("SoundFile") at runtime. Using the [attrib] brackets for attribute references at runtime will result in a runtime error because the SoundOut object will not translate that into the c.GetAttrib method. Therefore, except for some specific paradigms, it is probably best to set the SoundOut.Filename to an attribute [SoundFile] in E-Studio. Then, if the paradigm requires a different value than the value currently in the context, the author simply needs to call c.SetAttrib("SoundFile"), "sound.wav". Then, the you need not worry about calling the SoundOut.Load method (since E-Studio sets that up when an [attrib] is specified for the SoundOut.Filename). Note that the exact specifics would also be true for the ImageDisplay.Filename property as well (with images versus sounds of course). -Brandon __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ From christoph.lehmann at unifr.ch Fri Aug 17 14:23:14 2001 From: christoph.lehmann at unifr.ch (Christoph Lehmann) Date: Fri, 17 Aug 2001 16:23:14 +0200 Subject: e-prime triggered by MR scanner Message-ID: Dear e-prime users Is there any one who has experience with MR-triggered (via the paralleport) stimulus-presentation. We would like to have each (!) stimulus presentation triggered by our Siemens MR Scanner. Since the scanner usually sends a TTL impulse for every slice, one should be able to count each pulse at the port in the background until the first slice is measured again and then present the next stimulus. If there is anyone who could help us, we would be very grateful. Thanks a lot Sincerely Christoph L ------------------------------------------ University Hospital of Clinical Psychiatry Department of Psychiatric Neurophysiology Neuroimaging Group Bolligenstrasse 111 CH-3000 Bern 60 Switzerland Phone : ++41 31 930 93 83 E-Mail: lehmann at puk.unibe.ch From eclaus at iupui.edu Fri Aug 17 20:09:05 2001 From: eclaus at iupui.edu (Eric Claus) Date: Fri, 17 Aug 2001 15:09:05 -0500 Subject: e-prime triggered by MR scanner In-Reply-To: <811D3A3A3FBFD211B0D600105AA7D6D504C206@EEG_SERVER_B> Message-ID: Cristoph, I am not sure how you are sending the pulses, but if you can verify that you are sending a TTL through a parallel cable this may help. 1. Make sure your port is in Standard mode (this can be changed in BIOS when you restart). On Gateway computers, the setting is Output only. Do not use EPP, ECP, or Bi-Directional 2. To read input, the TTL must come in on any of the following pins: 15, 13, 12, 11, 10 (11 is inverted). In e prime, you will have to identify which bit to read, so you will need a bit to pin map. has a bit to pin map that we used. 3. You also will need a ground wire. The parallel cable we used had a separate ground, but within the cable itself, pins 18-25 are ground wires. 4. After you are sure you can receive a TTL through one of the pins mentioned above (10, 11, 12, 13, 15), then you can proceed to the programming. 5. In the Structure window of E prime, click on the top of your experiment structure (This should say Experiment (experiment name). Go to the Devices tab, Click Add, and click on Port. Next, configure the port by double clicking on the Port icon. Make sure the Address is set to &H379 (although you should check this in your computer manuals to make sure this is the correct port address), Size 8, Invert No, Mask -1. 6. After you have added and configured your port, you should be able to trigger a stimulus without too much problem. Something I have used to test this is a simple "experiment" that shows a blank screen and a fixation cross. When the TTL pulse is received, the fixation cross appears until the subject responds, leaving a blank screen again. Here is how it is set up. I have the TrialProc with a Target module and a Fixation module (both TextDisplay's). Under the Properties of the Target, click on Duration/Input tab, and under Input Devices, Add a Port device. For the Allowable Input, put 'any' or one of the bits that correspond to the pin your signal is being sent through (use map from #2). This will tell e prime to read the signal through any bit or the specific bit you choose. Time Limit should be infinite, and Input Action should be set to Terminate. Also, under the Duration setting, you should set this to a large number, as a small number (ie 1000) would cause the blank screen to terminate before the TTL pulse is received. As long as you have a something on the TrialProc before the actual stimulus, you should be able to display stimuli each time a TTL pulse is received. Hope this helps. The E prime email support was very helpful with this problem and usually responded within the day, if you are still having trouble. Eric ------------------- > Dear e-prime users > Is there any one who has experience with MR-triggered (via the paralleport) > stimulus-presentation. We would like to have each (!) stimulus presentation > triggered by our Siemens MR Scanner. Since the scanner usually sends a TTL > impulse for every slice, one should be able to count each pulse at the port > in the background until the first slice is measured again and then present > the next stimulus. If there is anyone who could help us, we would be very > grateful. > Thanks a lot > Sincerely > Christoph L > > ------------------------------------------ > University Hospital of Clinical Psychiatry > Department of Psychiatric Neurophysiology > Neuroimaging Group > Bolligenstrasse 111 > CH-3000 Bern 60 > Switzerland > > Phone : ++41 31 930 93 83 > E-Mail: lehmann at puk.unibe.ch > > > Eric Claus, B.S. Department of Psychology School of Science Indiana University-Purdue University at Indianapolis