Hi all,
I have the following question.
I would change, in the hoc code, the value of a variable at a specific time (i.e. when t=100 ms) during the simulation.
It is possible? If it is possible, how can I do?
Thanks,
Pasquale.
How to change variable value at a specific time in hoc code
Moderator: wwlytton
Re: How to change variable value at a specific time in hoc c
Hi.
I solved the problem with function Vector.play().
;)
I solved the problem with function Vector.play().
;)
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: How to change variable value at a specific time in hoc c
Vector play works well as a means for driving a parameter with a continuous forcing function. However, if you merely want to change the parameter's value a few times, it is more efficient to use the event delivery system. See
How to change parameters during a simulation
in the Forum's "Hot tips" section
viewforum.php?f=28
How to change parameters during a simulation
in the Forum's "Hot tips" section
viewforum.php?f=28