Millisecond Forums

Need help in go/no go procedure creating.

https://forums.millisecond.com/Topic11999.aspx

By madzik - 12/26/2013

Hello there.

I need help in developing procedure to use in my master thesis, I have less than a month to get it done. Yesterday I tried  to make a simple procedure, but it doesn't work. Im begging for mercy !


<item prostokaty>
/ 1= "D:\hazard\obrazki\blok1\VGO.bmp"
/ 2= "D:\hazard\obrazki\blok1\VNOGO.bmp"
/ items = (vgo,vnogo)
</item>


<picture prostokaty>
/ halign = center
/ height = 30%
/ items = prostokaty
/ position = (50%,50%)
/ size = (400, 400)
/ valign = center
/ width = 30%
/ select = list.poprawne_proba
</picture>




<trial vgo>
/ beginresponsetime =0
/ inputdevice = keyboard
/ posttrialpause = 700
/ recorddata = true
/ responsetime =1000
/ timeout =1000
/ validresponse = (spacebar, noresponse)
/ correctresponse = (spacebar)
</trial>



<trial vnogo>
/ beginresponsetime =0
/ inputdevice = keyboard
/ recorddata = true
/ responsetime =1000
/ timeout =1000
/ validresponse = (spacebar, noresponse)
/ correctresponse = (noresponse)
</trial>

<trial interwal>

/ timeout = 700
/ correctresponse = (noresponse)
/ validresponse = ( " ", noresponse)
/ recorddata = false
/ branch = [if (trial.interwal.response == " ") trial.interwal.recorddata = true]
</trial>


<expressions>
/ expression1 = trial.interwal.response == (" ")
</expressions>



WYNIKI

<data>
/ columns = [date, time, group, subject, trialcode, blockcode, trialnum, latency, correct, error, meanlatency, minilatency, maxlatency, sdlatency, numcorrect, percentcorrect, count, totalminlatency, totalmaxlatency, totalpercentcorrect, totalcount, stimulusnumber, stimulusonset]
/ file = "D:\hazard\RESULTS.iqdat"
/ separatefiles = true
</data>


<instruct>
/ fontstyle = ("Comic Sans MS", 2.33%, true, false, false, false, 5, 1)
/ inputdevice = keyboard
/ finishlabel = "Naciśnij spację"
/ nextlabel = "Naciśnij spację"
/ prevkey = (noresponse)
/ timeout = 10000
/ wait = 3000
/ windowsize = (100%,100%)
</instruct>



<page intro>
Za chwilę rozpocznie się sesja probna
blalblalbalblalbalblballballba
Powodzenia !
</page>

<page end>
Za chwilę przejdziesz do właściwej części badania
blalblablalbalbla
</page>






BLOKI

<block PROBA>
/ onblockbegin = [list.poprawne_proba]
/ postinstructions = (intro)
/ preinstructions = (wlasciwy)
/ trials = [1= vgo; 2= vnogo; 3= interwal]
</block>







EKSPERYMENT

<expt HAZARD>
/ blocks = [1=proba]
/ groupassignment = subjectnumber
</expt>

LISTA

<list poprawne_proba>
/ items = (1, 2)
/ itemprobabilities = (0.8, 0.2)
/ maxrunsize =2
/ poolsize =1
/ replace = true
/ selectionmode = random
</list>
By Dave - 12/26/2013

Madzik,

there are multiple issues with your code -- most of it is simply invalid syntax. So, first, I would *strongly* recommend you work through all of the tutorials included in the documentation. After that get some scripts from the Task Library at millisecond.com (which also has Go/No-Go procedures) and study those carefully. That said, let me point out a number of issues:

<item prostokaty>
/ 1= "D:\hazard\obrazki\blok1\VGO.bmp"
/ 2= "D:\hazard\obrazki\blok1\VNOGO.bmp"
/ items = (vgo,vnogo)
</item>

is broken and does not makes sense. You *either* list your items /1, /2 etc. *or* use the /items attribute as detailed in the documentation.

<trial vgo>
/ beginresponsetime =0
/ inputdevice = keyboard
/ posttrialpause = 700
/ recorddata = true
/ responsetime =1000
/ timeout =1000
/ validresponse = (spacebar, noresponse)
/ correctresponse = (spacebar)
</trial>

None of your <trial> elements display any stimuli. Where is your /stimulustimes or /stimulusframes attribute?

<expressions>
/ expression1 = trial.interwal.response == (" ")
</expressions>

Is unneeded and suffers from broken syntax.

<list poprawne_proba>
/ items = (1, 2)
/ itemprobabilities = (0.8, 0.2)
/ maxrunsize =2
/ poolsize =1
/ replace = true
/ selectionmode = random
</list>
Here, you have two items (1 and 2) to be sampled with certain different probabilities (0.8 and 0.2), yet you define a poolsize (i.e., total number of elements to be sampled from) of only 1. This does not make sense. If you were to set a poolsize of, say, 10, your pool would include get 8 x 1, and  2 x 2.

<block PROBA>
/ onblockbegin = [list.poprawne_proba]
/ postinstructions = (intro)
/ preinstructions = (wlasciwy)
/ trials = [1= vgo; 2= vnogo; 3= interwal]
</block>

The /onblockbegin expression does not make sense and isn't doing anything. It is unclear what it would be intended to accomplish. Furthermore, why are you only running three trials?
By madzik - 12/27/2013

Shame on me.

Version visible here is only the result of my reckless attempts to create anything what would be displayed.

Ultimately, what I want to create, is an emotional GNG task, with 4 blocks and numbers of stipulations, but I don't know if I'll make it, I have something about 1.5 month and I am hesitating whether it's worth of spending this time and creating something mistakenly on my own (or to hire an informatics, but it would cost bilions), or to intend to find some other techniques to examine participants of my survey.
By Dave - 12/27/2013

Madzik,

have you given the tutorials a go? Once you've done that, you should be able to get the basic procedure going. It's not particularly hard -- and spending a day or two working through the tutorials from front to back should be sufficient. Then, if there are any specific questions or problems, don't hesitate to post here.

But please do yourself a favor and complete the tutorials first. Trying to divine a working procedure before acquiring the basics of Inquisit syntax is unlikely to work. Or as they say: Don't try to run before you've learned to walk.

Best,

~Dave