Millisecond Forums

saving values appended to a list from one script to transfer to another

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

By nrouhani - 5/26/2022

hello, 

in my experiment, images are randomly selected (indices from a list) and shown to a participant in the first block; those indices (or values) are then appended to a new list. i then use these indices from the list generated by the first block to build a particular sequence of images in the second block (i.e., given their position in the first block). i am looking to use this script in an fMRI experiment, and it would help to have separate scripts for the blocks in case of troubleshooting. is there a way i could automatically save the list of indices appended in the first block to then feed into a separate script for the second block? 

thank you for your help!
By Dave - 5/27/2022

nrouhani - 5/27/2022
hello, 

in my experiment, images are randomly selected (indices from a list) and shown to a participant in the first block; those indices (or values) are then appended to a new list. i then use these indices from the list generated by the first block to build a particular sequence of images in the second block (i.e., given their position in the first block). i am looking to use this script in an fMRI experiment, and it would help to have separate scripts for the blocks in case of troubleshooting. is there a way i could automatically save the list of indices appended in the first block to then feed into a separate script for the second block? 

thank you for your help!

Not quite automatically, but see https://forums.millisecond.com/Topic31950.aspx
By nrouhani - 5/27/2022

Dave - 5/27/2022
nrouhani - 5/27/2022
hello, 

in my experiment, images are randomly selected (indices from a list) and shown to a participant in the first block; those indices (or values) are then appended to a new list. i then use these indices from the list generated by the first block to build a particular sequence of images in the second block (i.e., given their position in the first block). i am looking to use this script in an fMRI experiment, and it would help to have separate scripts for the blocks in case of troubleshooting. is there a way i could automatically save the list of indices appended in the first block to then feed into a separate script for the second block? 

thank you for your help!

Not quite automatically, but see https://forums.millisecond.com/Topic31950.aspx

thank you! one other question, if i wanted to start a script on the second (versus the first) block, is there a way to do so without the second block as its own experiment?
By Dave - 5/27/2022

nrouhani - 5/27/2022
Dave - 5/27/2022
nrouhani - 5/27/2022
hello, 

in my experiment, images are randomly selected (indices from a list) and shown to a participant in the first block; those indices (or values) are then appended to a new list. i then use these indices from the list generated by the first block to build a particular sequence of images in the second block (i.e., given their position in the first block). i am looking to use this script in an fMRI experiment, and it would help to have separate scripts for the blocks in case of troubleshooting. is there a way i could automatically save the list of indices appended in the first block to then feed into a separate script for the second block? 

thank you for your help!

Not quite automatically, but see https://forums.millisecond.com/Topic31950.aspx

thank you! one other question, if i wanted to start a script on the second (versus the first) block, is there a way to do so without the second block as its own experiment?

You could certainly build some logic that, say, uses a /skip attribute in the first block to omit said first block if you enter a certain group number.