NetStim.interval variable
Posted: Tue Nov 22, 2011 2:47 pm
Hi,
I want to have a NetStim that delivers random pulses but with a variable mean interval. Specifically, I want to have sinusoid form with max=0 and min=20 (or anything resembling that).
I have tried by playing a sine vector on Net1.interval, i.e.
But it doesn't work; I get a segmentation violation. (sinevec is a vector previously loaded from a text file)
(BTW I also tried with sinvec.play(Net1.interval,1,1), without the & and it doesn't work either but without the error).
What is the proper way of doing what I want? I have thought of modifying the .mod file but I want to leave that as the last resource.
Thanks!
I want to have a NetStim that delivers random pulses but with a variable mean interval. Specifically, I want to have sinusoid form with max=0 and min=20 (or anything resembling that).
I have tried by playing a sine vector on Net1.interval, i.e.
Code: Select all
sinvec.play(&Net1.interval,1,1)
(BTW I also tried with sinvec.play(Net1.interval,1,1), without the & and it doesn't work either but without the error).
What is the proper way of doing what I want? I have thought of modifying the .mod file but I want to leave that as the last resource.
Thanks!