Hi Chris,
a few hours before your eMail arrived, I got a talk with Stefan, about the example experiments. Good timing
He make suggestions for two simple experiments. The first one is is simple orientation discrimination:
A black screen. The subject press the âstartTrialâ-key.
A fixation-spot appear (but no fixation is required) for a (random/fixed) time (1000 ms):
The screen get black for ca. 500ms (fixed time) and then one of the following three lines will shown for a short time (lets say 250ms):
Then the screen get black and the subject must decide if the line is inclined to the left (answer key-1) or the the right (answer-key 2).
After the the subject press the answer-key the next trial begin (if possible with a random incline(left, zero, right)).
I hope it is not to much work, for building an experiment⊠if so, please feel free to contact me (eMail, Skpe, whatEver).
On Monday I will write a description of a second experiment (with eyepositions).
Is it possible, that i can take a first glance on the code? Iâm really very inquisitive how the code looks like, and how to implement a plug-in
Gruà aus Göttingen
& thank you for your work
Ralf
Hi Ralf,
Thanks for the quick response. Apparently, you and Stefan read my mind
Unfortunately, I may not have time to get to this today, and Iâm going to be out on vacation all of next week (March 29 to April 2). However, putting this together for you will be a top priority when I get back to the office on April 5.
In the meantime, feel free to check out the code, all of which is on GitHub:
The mw_examples repository contains some example experiments you can check out. Iâd also recommend watching Dave Coxâs screencast, which shows you how to set up and run a basic experiment:
http://public.coxlab.org/mw/Tutorial1.mov
If you want to start playing with MWorks (which I recommend), you can install a nightly build:
https://mworks.tenderapp.com/faqs/installation/install-mworks
Cheers,
Chris
Hi Ralf,
How is your MWorks experimentation going? Have you tried using the nightly build?
I discussed your first demo experiment with Jim. For the most part, it should be easy to implement with MWorks. However, MWorks currently doesnât support receiving input from a keyboard. This is something we can implement, although it may require writing a new plugin. Alternatively, thereâs an existing plugin that supports input via USB gamepads. (I believe the main target is Microsoftâs SideWinder gamepad: Microsoft SideWinder - Wikipedia .) Would that be an acceptable substitute for a keyboard?
Also, when you have a chance, itâd be great if you could send a description of your second experiment (the one with eye positions). Weâre still trying to get a handle on what new features need to go into the next release, so Iâd like to find out sooner rather than later what we need to add to support your experiments.
Thanks,
Chris
Hi Ralf,
Hereâs an MWorks implementation of your first example experiment. It uses a game controller instead of a keyboard. To start each trial, the subject presses the âAâ button. To indicate whether the line is inclined to the left or right, the subject presses the left or right trigger button, respectively. The experiment runs through 12 trials; the line incline for each trial is random.
You can inspect the experiment by opening the file in MWEditor. Most of it should be relatively straightforward. However, the way the random selection is implemented might be a little confusing, so Iâll try to explain.
The states and transitions for each trial are encapsulated in the âNew Task Systemâ item. If you open the âShow lineâ state and inspect the âQueue lineâ action, youâll see that the stimulus to enqueue is defined as an expression:
Lines[stimulus_index]
âLinesâ is a stimulus group that contains the three different line stimuli. Which line gets displayed is determined by the value of the variable âstimulus_indexâ.
You may have noticed that âNew Task Systemâ is contained within âNew Replicatorâ. A range replicator is a paradigm component that creates multiple copies of its contents by varying the value of a variable. In this case, âNew Replicatorâ creates three copies of âNew Task Systemâ, the first of which has âstimulus_indexâ set to 0, the second 1, and the third 2. Therefore, each of the three copies of âNew Task Systemâ displays a different line incline (zero, left, and right, respectively).
Finally, âNew Replicatorâ is contained within âNew Trialâ, which is configured to draw 12 samples from its contents (itâs contents being the three different copies of âNew Task Systemâ), using the random with replacement selection scheme.
Hopefully this will all make sense, but please feel free to ask me any questions you have. (We can chat over email or IM â whatever is easier).
Cheers,
Chris
Attachment: ralf_example_1.xml (10.3 KB)
Hi Ralf,
One detail I neglected to mention: The specific game pad model supported by MWorks is the Microsoft SideWinder Plug & Play Game Pad. Although this model is no longer manufactured, it looks like you can buy a used one via Amazon. Alternatively, we can update the plugin to work with (or write a new plugin for) a currently-available controller.
Chris
Hi Chris,
we already bought a MS compatible model and it work without any problem :). I will ask my college for the exact nameâŠ
GruĂ Ralf
ps. Sorry for any delay. Iâm on Puerto Rico up to the end of the monthâŠ
Hi Ralf,
we already bought a MS compatible model and it work without any problem
Great! Iâm glad that the plugin works with more recent hardware. Thanks for the link.
Chris