1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
.. index:: makeFamily (HOC function)
.. _hoc_family:
Family
------
For several values of a variable, execute an action.
Basically just a form for specifying a for loop.
usage: ``makeFamily()`` constructs a Family and maps it to the screen. The Family
instance is destroyed when its window is dismissed.
The slider value ranges from start to end. Due to the length of time it
generally takes to complete an action it is best to use the middle button
to select a value with the slider. Dragging the slider button or using
it too rapidly will cause many action requests to be ignored since a
slider event taking place while handling the previous event is prevented
from executing the action recursively. The occasionally has the unintended
effect of missing the last action when one releases the mouse button.
Menu items:
start end numbersteps:
Beginning and final values of the loop variable. The number of steps
includes these limiting values so should be at least 2 but if it is 1 then
the loop reduces to only the start value.
Variable:
Pops up a SymChooser for selection of a variable name.
The Family object cannot work without a variable since there is no default.
Action:
Pops up a stringchooser for selection of the body of the loop. The default
run() action is typically what is desired.
Run:
Starts the loop
Stop -- Now:
Stops the loop even in the middle of the action. (The stdrun.hoc run()
action regularly checks the stop_run variable.)
Stop -- Atendofaction:
Waits for the current action to finish before stopping.
Cont:
Starts the action with the next value of the variable.
(If the previous action was stopped in the middle,
that action is not restarted where it left off.)
.. _hoc_execcommand:
ExecCommand
-----------
Specify a command and execute it.
.. _hoc_gathervec:
GatherVec
---------
Press "Record" button and plot a new point consisting
of the values for specified x and y variables. (x or y crosshair values
are good candidates for the y variable and a run parameter is a good
candidate for the x variable. Then one does a run, selects a point with
crosshairs, and presses the record button on the GatherValues tool)
.. _hoc_vectorplay:
VectorPlay
----------
Copy a vector from the clipboard and play it into some
chosen (from a Symchooser) variable name. There is button to connect
and disconnect (return the default value to the variable) the vector.
.. _hoc_vecwrap:
VecWrap
-------
Copy vector(s) from the clipboard and do various
manipulations: Discard left of crosshair, discard right of crosshair,
crosshair point becomes origin. Obviously rudimentary but this egg
may hatch into something.
|