I am not sure if my revised code is what you suggested. Could you please take a look and let me know?
2) I guess for acceleration, I can set the value for the Greaterthan to a positive value, say 40
for deceleration, I can set the value for the Greaterthan to a positive value, say -40
3) I do not understand this comment " Please note that if you are interested in variation of speed (magnitude of velocity vector), it may be easier to differentiate that number instead (i.e. the output of your original Velocity node). You can use the Subtract pattern above, or simply the Difference node with the Order parameter set to 1 for that. "
4) I have one line of code to send out a TTL timestamp whenever the Flycapture take a frame, but there is an error when I delete " Greaterthan". I set the value of the Greaterthan to 0 here.
It seems this trick works, but do you know a better way of doing this.
5) would it be possible to trigger with a 50% probability so that half of the trials will be within-subject control.
Thanks,
Zirong