Is there a way to specify initial conditions of gating variables with the Channel Builder GUI, analogous to using INITIAL in hoc?
If not is there a way to specify initial gating conditions in the .hoc code used to call a cell rather than having to create a .mod file for each current?
Thanks!
ChannelBuilder Initial Conditions
-
- Site Admin
- Posts: 6300
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
State variables of mechanisms constructed with the Channel Builder are visible at the hoc
level in the usual way (suffix or dot notation, depending on whether it's a density or point
process mechanism). All you need to do is create a proc that assigns the values you want
to the gating variables, then use an FInitializeHandler to ensure that your proc is called on
each initialization. This will work but code can be quite detailed if there are many states, e.g.
dozens of segments with numerous mechanisms.
Initialization of spontaneously active models may be more conveniently achieved by using
the SaveState class.
FInitializeHandler and SaveState have been discussed in many threads on this Forum;
definitive documentation is provided by the Programmer's Reference.
level in the usual way (suffix or dot notation, depending on whether it's a density or point
process mechanism). All you need to do is create a proc that assigns the values you want
to the gating variables, then use an FInitializeHandler to ensure that your proc is called on
each initialization. This will work but code can be quite detailed if there are many states, e.g.
dozens of segments with numerous mechanisms.
Initialization of spontaneously active models may be more conveniently achieved by using
the SaveState class.
FInitializeHandler and SaveState have been discussed in many threads on this Forum;
definitive documentation is provided by the Programmer's Reference.