[visionegg] Re: [visionegg]the time in the demo

Lili Wu wrote:
> Hi all,
>  I have two questions when running the demo of makemovie.py and I am 
> looking for some help.
> When I changed the presentation time in the command
> p = Presentation(go_duration=(1,'seconds'),viewports=[viewport])
>  
> in fact,the duration of the stimulus is more than 1 seconds(about 4 s).

Hi Lili,

The makemovie.py demo saves all the frames, as if they would have been
drawn on the monitor. But because this is slower than drawing on the
monitor, it takes longer. So, I think you're experiencing normal
behavior. Or are you suggesting something might be wrong?

>  
> Another question is in the follow commands:
> # define position as a function of time
> def get_target_position(t):
>     global mid_x, mid_y, max_vel
>     return ( max_vel*sin(0.1*2.0*pi*t) + mid_x , # x
>              max_vel*sin(0.1*2.0*pi*t) + mid_y ) # y
>  
> in the programe, the t has not been defined, and I can not export its value.
> Could anyone tell me that how the value of 't' has been setted?

Ahh, this is part of the magic of the VE Controllers in the
FlowControl.py module. This is controlled by a controller's
"temporal_variables" variable, as described here
http://visionegg.org/reference/VisionEgg.FlowControl.Controller-class.html
.  You can  set this  parameter when you create the FunctionController.

-Andrew
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: