On 14/07/2016, at 05:31, Vyoma Shah <vs...@lbl.gov> wrote:I tried inserting the code component and adding something like this to the Begin Routine part but it doesn't seem to end the loop:if key_resp_2.keys == "n":continueRoutine = Falseloopname.finished = True
On 14/07/2016, at 09:46, Vyoma Shah <vs...@lbl.gov> wrote:Ah good point! I tried putting it in end routine too but it doesn't seem to end the routine! Sorry, I'll try to be clearer and re-explain here:
The task has ~60 trials, and it loops from one trial to the next. Each trial is such that there are 4 routines - each one is a question and allows the subject to give an answer. If the subject answers yes (the key "b") for the first question it ends that routine, then shows them the next 3 routines/questions. This part works fine.
However, if the subject answers "no" on the first question, I want it to end that routine, skip the next 3 questions for that loop and move on to the next trial.
So far, I just have a regular Builder key response that goes through all 4 routines. Tried writing something to end that trial in the loop but it didn't work :( Any ideas?
Thanks for all the help!
On 14/07/2016, at 10:46, Vyoma Shah <vs...@lbl.gov> wrote:No, that's also something I'm not sure how to deal with. I don't want to end the remaining 59 trials if they respond no to the first question, just want it to move on to the next trial (next first routine). Any way to end *just* this specific trial (end this routine, skip the next 3 routines and start the first routine for the next trial). Sorry, I'm still a novice to this and figuring out what might be the best way to approach this. Maybe just a chunk of code and no Builder key response at all?
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/PaEiLrqmMTM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/452A7C77-6880-4DAA-B98C-3388394B4811%40nzbri.org.
Awesome, I just tested this and it worked perfect. Thank you so much!!
On Wed, Jul 13, 2016 at 7:41 PM, Michael MacAskill <michael....@nzbri.org> wrote:
On 14/07/2016, at 10:46, Vyoma Shah <vs...@lbl.gov> wrote:No, that's also something I'm not sure how to deal with. I don't want to end the remaining 59 trials if they respond no to the first question, just want it to move on to the next trial (next first routine). Any way to end *just* this specific trial (end this routine, skip the next 3 routines and start the first routine for the next trial). Sorry, I'm still a novice to this and figuring out what might be the best way to approach this. Maybe just a chunk of code and no Builder key response at all?Yes, just do exactly as I suggested but leave out the line where you try to finish the loop, as that is not necessary or desired.i.e. in response to the the keypress on the first routine:(1) set continueRoutine to False: this has immediate effect in ending the first routine.(2) set runOrNot to 0: This will prevent any of the three subsequent routines running on this trial. Therefore the loop will go straight to the next iteration, starting at the first routine again.Make sense?Regards,Michael--
Michael R. MacAskill, PhD 66 Stewart St
Research Director, Christchurch 8011
New Zealand Brain Research Institute NEW ZEALAND
Senior Research Fellow, michael....@nzbri.org
Te Whare Wānanga o Otāgo, Otautahi Ph: +64 3 3786 072
University of Otago, Christchurch http://www.nzbri.org/macaskill
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/PaEiLrqmMTM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-users+unsubscribe@googlegroups.com.
To post to this group, send email to psychopy-users@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/PaEiLrqmMTM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/DE721704-1A25-4A2C-9A16-AFF775FB235D%40nzbri.org.
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/PaEiLrqmMTM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/073622A6-DBF5-4BEE-B528-5EF72B1443A9%40nzbri.org.