You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# system information
API: 2.1
OpenSesame: 3.3.9b1
Platform: posix
I'm trying to run a loop that contains a keyboard which updates a global variable named "Ta".
"Ta" has been initialized at 0 before the loop.
At the first iteration, "Ta" has no effect on the duration of Sketchpad "Blanck_part3_2", then, since the second iteration, the correct duration is set.
We know that the duration of "Blanck_part3_2" at the first iteration is the initial value despite the incrementation of "Ta"
Here's the code for handling keyboard input and update "Ta" variable:
itération no: 0 | Ta -> 234.66181755065918 # Blanck_part3_2 duration is not set
itération no: 1 | Ta -> 298.0988025665283 # Blanck_part3_2 duration is set correctly
itération no: 2 | Ta -> 319.02170181274414 # Blanck_part3_2 duration is set correctly
itération no: 3 | Ta -> 331.1147689819336 # Blanck_part3_2 duration is set correctly
Here's how we set duration to "Blanck_part3_2" sketchpad python set duration "[Ta]"
Do you have any idea what's wrong ?
thanks
The text was updated successfully, but these errors were encountered:
If that's not it, would you remind reposting this question on the support forum? I'm closing the issue here because it's not an issue as such, but rather a question related to usage.
Hi
I'm trying to run a loop that contains a keyboard which updates a global variable named "Ta".
"Ta" has been initialized at 0 before the loop.
![githubissue](https://user-images.githubusercontent.com/32666009/141325929-f2625d72-8e5d-4ef3-bcca-70fe84323bc5.png)
At the first iteration, "Ta" has no effect on the duration of Sketchpad "Blanck_part3_2", then, since the second iteration, the correct duration is set.
We know that the duration of "Blanck_part3_2" at the first iteration is the initial value despite the incrementation of "Ta"
Here's the code for handling keyboard input and update "Ta" variable:
Here the output (that works as expected)
Here's how we set duration to "Blanck_part3_2" sketchpad
python set duration "[Ta]"
Do you have any idea what's wrong ?
thanks
The text was updated successfully, but these errors were encountered: