Hi Chris,
I hope everything is going smoothly on your end.
I have a very basic question. I am using drifting grating stimuli which, after a random period of time, increase the speed of one of them. The issue is that I want to increase the speed at a very specific phase. Therefore, is there a way to read the current phase of a drifting grating stimulus?
Thanks a lot in advance.
Have a good one,
Cheers,
Jaime
Hi Jaime,
The current phase isn’t exposed via a parameter. However, it is included in #stimDisplayUpdate announcements, and you can access its value at run time via Python actions.
For an example of this, see StartingPhase. This experiment calls the Python function get_current_phase (defined in get_current_phase.py) to obtain the current phase and display it on screen. You could use a similar function to check for the specific phase at which to increase the grating speed.
If you have any questions, please let me know.
Cheers,
Chris
Hi Chris,
Thanks a lot. this was very helpful!
Cheers,
Jaime