I want a specific time to run an statement

(Asen = #) & / @ Range [Pi / 2, Pi, 0.001]

I want to run the above statement at a specific time. Is this possible?

Thank you

Have you taken a look at ScheduledTask?

I’m not sure what your code is doing. It’s sorta strange to Map a function like (Set). Are you asking how you can have the Map assign the different values to “Asen” at different times?

Dear Ernesto,

you might be looking for the function RunScheduledTask.
The examples should be particularly useful.

Best wishes,

Marco

PS: Dear Sean, sorry. I don’t know what happened. When I posted this your post did not show up in my browser.

I’m trying to imitate by code the motion and time of the Animator statement, to present students the different stages of the movement.

(ASen = #) & / @ Range [Pi / 2, Pi, 0.001]

Here the Dynamic ASen variable is the parameter of the Animator statement, and I’m using this variable to execute the movement in context.

I need to run this code is a specific time so that the student can see the movement. (The same time that Animator use, more or less.)

I do not know if I need RunScheduledTask or CreateScheduledTask (it uses seconds). Probably is another thing that I’m looking for.
Thanks Sean.

I advance step by step.

I have the same code but the third Button is not working. Why?