/* Uses the makeCell*.hoc files in parallel. Also the new ball and stick template. */ /************* Loading necessary files *********************/ load_file("BallStickCell.hoc") // Makes savestates for dendrites 200-1000 microns and voltages -55 to -85 mV. /************* The procs ****************/ strdef mcVS,fName,filename objref savestate proc mcVolt() { local voltInput,length localobj cell // Inputs: // $1 is v_init // $2 is length voltInput = $1 length = $2 // Makes cell with desired voltage and length cell = new Cell(length,voltInput) v_init = voltInput makeSv(length) // makeSv() makes the savestate for the cell type; the file is labelled with length and Vm } proc makeSv() { localobj f,sv // Makes a savestate with labels for length and voltage. // Does not set v_init: that must be declared before calling makeSv() // Input: // $1 is the length of the ball and stick model's dendrite. tstop = 1000 init1() // init1 used because no savestate has been made yet while (t