Branching problem


Author
Message
Jin
Jin
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 26, Visits: 103
Hi All,

I have been trying to get my program to go from video > survey page > waiting page, in this consecutive order. I thought I inputted the correct lines; however whenever I test it, the program skips the survey page. Any help would be appreciated!


<surveypage PRAC_Q>
/ questions = [1=PRAC_Q]
/ nextbuttonposition = (40%,70%)
/ finishlabel = "Click to procced"
/ showquestionnumbers = false
/ showpagenumbers = false
/ showbackbutton = false
</surveypage>

<caption PRAC_Q>
/ caption = "Please describe what you saw in the movie for the next 60 seconds.~r~r
Please keep talking for the entire time. When you are ready, click the button to proceed to start the timer."
/ position = (50%,50%)
/ fontstyle = ("Arial", 2.5%, true)
/ size = (50%, 45%)
/ txcolor = white
</caption>

<trial Wait>
/ ontrialbegin = [clock.timer.start(0)]
/ stimulusframes = [1=wait,timer]
/ validresponse = ("t")
/ inputdevice = keyboard
/ responseinterrupt = immediate
/ trialduration = 10000
/ pretrialpause = 250
/ posttrialpause = 250
</trial>

<trial PRAC_GD>
/ stimulustimes = [0=PRAC_GD]
/ responseinterrupt = false
/ timeout = 45000
/ branch = [surveypage.prac_q; trial.wait]
/ pretrialpause = 250
/ posttrialpause = 250
/ validresponse = (57)
/ inputdevice = keyboard
</trial>

<block PRACTICE>
/ trials = [1-3=noreplace(PRAC_GD, PRAC_TOM, PRAC_RD);4=taskstart]
</block>


Thank you!

Dave
Dave
Supreme Being (784K reputation)Supreme Being (784K reputation)Supreme Being (784K reputation)Supreme Being (784K reputation)Supreme Being (784K reputation)Supreme Being (784K reputation)Supreme Being (784K reputation)Supreme Being (784K reputation)Supreme Being (784K reputation)
Group: Administrators
Posts: 10K, Visits: 51K
<trial PRAC_GD>
/ stimulustimes = [0=PRAC_GD]
/ responseinterrupt = false
/ timeout = 45000
/ branch = [surveypage.prac_q; trial.wait]
...
</trial>

This is wrong. You cannot /branch to two different elements *at the same time*. From the "video" <trial>, you need to /branch to the <surveypage>. From the <surveypage>, you need to /branch to the "wait" trial.

<trial PRAC_GD>
...
/ branch = [surveypage.prac_q]
...
</trial>

<surveypage PRAC_Q>
...
/ branch = [trial.wait]
...
</surveypage>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search