function synconnect

// cell_4R

   // newspikegen 
   addmsg /cell_4R/soma /cell_4R/soma/spike INPUT Vm

   // SynS_object and synchan on cell_4R
   addmsg /cell_4L/soma /cell_4R/soma/mod_SynS4L4R VOLTAGE Vm
   addmsg /cell_4R/soma/mod_SynS4L4R /cell_4R/soma/SynS4L4R MOD m_SynS
   addmsg /cell_4L/soma/spike /cell_4R/soma/SynS4L4R SPIKE
   addmsg /cell_4R/soma/SynS4L4R /cell_4R/soma CHANNEL Gk Ek
   addmsg /cell_4R/soma /cell_4R/soma/SynS4L4R VOLTAGE Vm

   // graded synapses on cell_4R
   addmsg /cell_4R/soma/SynG cell_4R/soma CHANNEL Gk Ek
   addmsg /cell_4L/soma /cell_4R/soma/SynG VOLTAGE Vm 
   addmsg /cell_4L/soma/CaF_ron /cell_4R/soma/SynG CAF Ik 
   addmsg /cell_4L/soma/CaS_ron /cell_4R/soma/SynG CAS Ik
   addmsg /cell_4R/soma /cell_4R/soma/SynG POSTVOLTAGE Vm 

   // synchan on cell_4R from cell_1R
    addmsg /cell_1R/soma/spike /cell_4R/soma/SynS1R4R SPIKE
   addmsg /cell_4R/soma/SynS1R4R /cell_4R/soma CHANNEL Gk Ek
   addmsg /cell_4R/soma /cell_4R/soma/SynS1R4R VOLTAGE Vm

   // synchan on cell_4R from cell_2R
   addmsg /cell_2R/soma/spike /cell_4R/soma/SynS2R4R SPIKE
   addmsg /cell_4R/soma/SynS2R4R /cell_4R/soma CHANNEL Gk Ek
   addmsg /cell_4R/soma /cell_4R/soma/SynS2R4R VOLTAGE Vm


 
// cell_4L

   // newspikegen 
   addmsg /cell_4L/soma /cell_4L/soma/spike INPUT Vm

   // SynS_object and synchan on cell_4L
   addmsg /cell_4R/soma /cell_4L/soma/mod_SynS4R4L VOLTAGE Vm
   addmsg /cell_4L/soma/mod_SynS4R4L /cell_4L/soma/SynS4R4L MOD m_SynS
   addmsg /cell_4R/soma/spike /cell_4L/soma/SynS4R4L SPIKE
   addmsg /cell_4L/soma/SynS4R4L /cell_4L/soma CHANNEL Gk Ek
   addmsg /cell_4L/soma /cell_4L/soma/SynS4R4L VOLTAGE Vm

   // graded synapse on cell_4L
   addmsg /cell_4L/soma/SynG /cell_4L/soma CHANNEL Gk Ek
   addmsg /cell_4R/soma /cell_4L/soma/SynG VOLTAGE Vm  
   addmsg /cell_4R/soma/CaF_ron /cell_4L/soma/SynG CAF Ik 
   addmsg /cell_4R/soma/CaS_ron /cell_4L/soma/SynG CAS Ik 
   addmsg /cell_4L/soma /cell_4L/soma/SynG POSTVOLTAGE Vm 

   // synchan on cell_4L from cell_1L
   addmsg /cell_1L/soma/spike /cell_4L/soma/SynS1L4L SPIKE
   addmsg /cell_4L/soma/SynS1L4L /cell_4L/soma CHANNEL Gk Ek
   addmsg /cell_4L/soma /cell_4L/soma/SynS1L4L VOLTAGE Vm

   // synchan on cell_4L from cell_2L
   addmsg /cell_2L/soma/spike /cell_4L/soma/SynS2L4L SPIKE
   addmsg /cell_4L/soma/SynS2L4L /cell_4L/soma CHANNEL Gk Ek
   addmsg /cell_4L/soma /cell_4L/soma/SynS2L4L VOLTAGE Vm

// cell_1L

   // newspikegen 
   addmsg /cell_1L/soma /cell_1L/soma/spike INPUT Vm

   // SynS_object and synchan on cell_1L from cell_4L
   addmsg /cell_4L/soma /cell_1L/soma/mod_SynS4L1L VOLTAGE Vm
   addmsg /cell_1L/soma/mod_SynS4L1L /cell_1L/soma/SynS4L1L MOD m_SynS
   addmsg /cell_4L/soma/spike /cell_1L/soma/SynS4L1L SPIKE
   addmsg /cell_1L/soma/SynS4L1L /cell_1L/soma CHANNEL Gk Ek
   addmsg /cell_1L/soma /cell_1L/soma/SynS4L1L VOLTAGE Vm

// cell_1R

   // newspikegen 
   addmsg /cell_1R/soma /cell_1R/soma/spike INPUT Vm

   // SynS_object and synchan on cell_1R from cell_4R
   addmsg /cell_4R/soma /cell_1R/soma/mod_SynS4R1R VOLTAGE Vm
   addmsg /cell_1R/soma/mod_SynS4R1R /cell_1R/soma/SynS4R1R MOD m_SynS
   addmsg /cell_4R/soma/spike /cell_1R/soma/SynS4R1R SPIKE
   addmsg /cell_1R/soma/SynS4R1R /cell_1R/soma CHANNEL Gk Ek
   addmsg /cell_1R/soma /cell_1R/soma/SynS4R1R VOLTAGE Vm


// cell_2L

   // newspikegen 
   addmsg /cell_2L/soma /cell_2L/soma/spike INPUT Vm

   // SynS_object and synchan on cell_2L from cell_4L
   addmsg /cell_4L/soma /cell_2L/soma/mod_SynS4L2L VOLTAGE Vm
   addmsg /cell_2L/soma/mod_SynS4L2L /cell_2L/soma/SynS4L2L MOD m_SynS
   addmsg /cell_4L/soma/spike /cell_2L/soma/SynS4L2L SPIKE
   addmsg /cell_2L/soma/SynS4L2L /cell_2L/soma CHANNEL Gk Ek
   addmsg /cell_2L/soma /cell_2L/soma/SynS4L2L VOLTAGE Vm


// cell_2R

   // newspikegen 
   addmsg /cell_2R/soma /cell_2R/soma/spike INPUT Vm

   // SynS_object and synchan on cell_2R from cell_4R
   addmsg /cell_4R/soma /cell_2R/soma/mod_SynS4R2R VOLTAGE Vm
   addmsg /cell_2R/soma/mod_SynS4R2R /cell_2R/soma/SynS4R2R MOD m_SynS
   addmsg /cell_4R/soma/spike /cell_2R/soma/SynS4R2R SPIKE
   addmsg /cell_2R/soma/SynS4R2R /cell_2R/soma CHANNEL Gk Ek
   addmsg /cell_2R/soma /cell_2R/soma/SynS4R2R VOLTAGE Vm

/*
// cell_5L extra cell

   // SynS_object and synchan on cell_5L 
   addmsg /cell_4L/soma /cell_5L/soma/mod_SynS4L5L VOLTAGE Vm
   addmsg /cell_5L/soma/mod_SynS4L5L /cell_5L/soma/SynS4L5L MOD m_SynS
   addmsg /cell_4L/soma/spike /cell_5L/soma/SynS4L5L SPIKE
   addmsg /cell_5L/soma/SynS4L5L /cell_5L/soma CHANNEL Gk Ek
   addmsg /cell_5L/soma /cell_5L/soma/SynS4L5L VOLTAGE Vm

   // graded synapses on cell_5L
   addmsg /cell_5L/soma/SynG cell_5L/soma CHANNEL Gk Ek
   addmsg /cell_4L/soma /cell_5L/soma/SynG VOLTAGE Vm 
   addmsg /cell_4L/soma/CaF_ron /cell_5L/soma/SynG CAF Ik 
   addmsg /cell_4L/soma/CaS_ron /cell_5L/soma/SynG CAS Ik 
   addmsg /cell_5L/soma /cell_5L/soma/SynG POSTVOLTAGE Vm 
*/

end