If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): macOS Catalina PsychoPy version (e.g. 1.84.x): PsyoPy3 Standard Standalone? (y/n) If not then what?: What are you trying to achieve?: Play sound stimulus at random intervals (in secs) durnig a trial (i.e., 6s, 7s, 8s, 9s) defined using a conditions.xlsx file.
**What did you try to make it work?: ** Created a sound object with a Start time defined using a $Stim_onset variable created within my conditions.xlsx file. The Sound was also defined using a $Stim_frex variable.
What specifically went wrong when you tried that?:
if sound_3.status == NOT_STARTED and tThisFlip >= asarray($Stim_onset)-frameTolerance:
The experiment runs if I call the Sound “Start” without the dollar sign before the variable name but the Sound with the dollar sign before the variable name. For example, in the Start box I input “Stim” but in the Sound box I put “$Frex” to call the variables within the conditions.xlsx file.
Huh nice OK that is an interesting point I may have to raise with the dev team. The general rule of thumb is "if the parameter name has a ‘$’ already written there, you don’t need to add a $ sign at the start of the field. But I don’t think the sound field has a ‘$’ in it’s name is that correct in your version?