emorgan

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Preloading resources by experiment list #6639
    emorgan
    Participant

    Thanks very much!

    in reply to: Preloading resources by experiment list #6612
    emorgan
    Participant

    Thank you for such a quick response! I realized I glossed over too much in my question. We really do want to execute different PreloadZip commands depending on the counter value (because otherwise the amount of data to be loaded is way too large if we have to load all possible files for every participant). When we first tried to use the __counter_value_from_server__ variable (in a switch statement outside of the Template function), we got the error:

    Unrecognized expression ‘__counter_value_from_server__’ (line 250) (PennController: 9)

    We thought perhaps the problem was that that variable was only defined inside the Template, but clearly that’s not the problem. Do you know what the issue might be? Thank you again!

    Best,
    Emily

    in reply to: Preloading resources by experiment list #6610
    emorgan
    Participant

    Hi Jeremy,
    To follow up on this, our template is designed with a variable and plays a specific audio file from a group. It seems that in order to use the __counter_value_from_server__, we need to be inside the template. Is that right? If so, where would that switch statement go if the code structure looks like:

    Template(“myTable.csv”, variable =>
    newTrial(“music”,
    newText (“Listen carefully to the melody.”)
    .center()
    .print()
    ,
    newButton(“Play”)
    .center()
    .print()
    .wait()
    ,

    Thank you again for your help!

    -Emily

    in reply to: Preloading resources by experiment list #6590
    emorgan
    Participant

    Yes, thanks for clarifying–I did mean preloading from a zip file, and that solution is exactly what I was looking for! Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)