ChannelBuilder Initial Conditions

Using the graphical user interface to build and exercise models. Includes customizing the GUI by writing a little bit of hoc.
Post Reply
Posts: 31
Joined: Mon Mar 26, 2007 12:44 pm

ChannelBuilder Initial Conditions

Post by tsa »

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?

Site Admin
Posts: 5810
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Post by ted »

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.
Post Reply