|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 10/17/2008 11:51:14 AM
Posts: 9,
Visits: 66
|
|
| Hi, I am trying to design an experiment that will play a sound file at a random point whist displaying a picture. This is to be a startle probe while the user focuses on the picture. In other posts the only other mention of this is to use a JUMP handle that is triggered by an input device i.e. spacebar or mouseclick. I am therefore trying to EMULATE an input trigger to force the jump handler automatically. In the manuals and E-Basic help screens it mentions a method to use InputDevice.InsertResponse. If you open the file E-BasicExample.es as supplied during the original install in My Experiments\Tutorials and enter the code: StimDisplay.Prerelease = 5000 StimDisplay.Run Keyboard.InsertResponse "1" This does not work and any combination of changing the InsertResponse input devices does not work either. Has anybody found out a way to get this method working? I have tried again in v2 Beta but this still does not work. A solution to what i am trying to achieve would be gratefully received. Thanks Anthony McGuffie
|
|
|
|
|
Forum MVP
      
Group: Administrators
Last Login: Yesterday @ 9:26:59 AM
Posts: 576,
Visits: 1,254
|
|
| You can accomplish what you are trying to achieve, but you need to use Jumping coupled with an absorb object. I have attached an example experiment that can be used to accomodate the algorithm you are looking to do. In the sample, it is BasicRT, but on even number trials "canary" can be heard at a random time. If the user responds, it bounces to the feedback like you would expect. If the distractor sounds, they can still respond and bounce to the feedback. An excerpt of the abstract... This experiment shows how you can present a sound distractor while maintaining a trial. This is done through jumping and emulating a response to cause a jump. The experiment sets up two input masks, one for the distractor and one for the Stimulus. When either input mask fires, the HandleJumpLabel determines which one fired and takes appropriate action. If the Stimulus fires, then it skips additional handling and goes right to the feedback. If the Distractor fires, it plays the distractor sound and then resumes where it left off so that the Stimulus can continue to accept responses for the remainder of the time. The Absorb wait object is a zero duration no sync object that is required for this algorithm to work. A jump operation must be handled by a RteRunnableInputObject which a Wait is. By using PreRelease and SetNextTargetOnset time, you can run the Absorb object and it will both wait for the intended time and handle the jumping operations. Note you cannot use the Terminate end response action condition in an experiment like this since the Terminate end resp action under EP 1.x is setup to terminate the object whose .Run method is being invoked which would not be what is intended here.
|
|
|
|