Network of cells using gap jucntion
Posted: Thu Dec 16, 2010 4:04 pm
Please, could you explain to me why this code generates error;
load_file ("Rod.tem") // load template for Rod cells
rodx = 4 // number of horizontal layers of cells
rody = 5 // number of vertical layers of cells
ncells = rodx * rody // Total number of Rod cells to create
objref Rod[rodx][rody] // create 2 dimesional array of rod cells
for i=0, rodx-1 {
for j=0, rody-1 {
Rod[j] = new Rodcell() // create Rod cels from template
}
}
-----------------------------------------------------------------------------------------There is no error in the codes above -----------------------------------------------------------------------
// create connections
for i=0, rodx-1 {
for j=0, rody-2 {
objref GapRod[2] // Gap connection among rods
for k=0, 1 {
GapRod[k] = new gap()
Rod[j] GapRod[0].loc(0.95) // just inside the distal end of first cell
Rod[j+1] GapRod[1].loc(0.05) // just inside the proximal end of the second cell
setpointer GapRod[0].vgap, Rod[j+1].v(0.05)
setpointer GapRod[1].vgap, Rod[j].v(0.95)
}
}
}
-----------------------------------------------------------------------------The error is between the first horizontal line and this -----------------------------------------------
The error generated is "nrniv: GapRod not an array variable
in /cygdrive/C/Documents and Settings/_Irene_/My Documents/Research at WFUMC/Peer review papers/Diencephalon/Retina/Network_Retina_Cells/Rod_Network/Create_Cells.hoc near line 28
GapRod[k] = new gap()"
Thank you
Irene
load_file ("Rod.tem") // load template for Rod cells
rodx = 4 // number of horizontal layers of cells
rody = 5 // number of vertical layers of cells
ncells = rodx * rody // Total number of Rod cells to create
objref Rod[rodx][rody] // create 2 dimesional array of rod cells
for i=0, rodx-1 {
for j=0, rody-1 {
Rod[j] = new Rodcell() // create Rod cels from template
}
}
-----------------------------------------------------------------------------------------There is no error in the codes above -----------------------------------------------------------------------
// create connections
for i=0, rodx-1 {
for j=0, rody-2 {
objref GapRod[2] // Gap connection among rods
for k=0, 1 {
GapRod[k] = new gap()
Rod[j] GapRod[0].loc(0.95) // just inside the distal end of first cell
Rod[j+1] GapRod[1].loc(0.05) // just inside the proximal end of the second cell
setpointer GapRod[0].vgap, Rod[j+1].v(0.05)
setpointer GapRod[1].vgap, Rod[j].v(0.95)
}
}
}
-----------------------------------------------------------------------------The error is between the first horizontal line and this -----------------------------------------------
The error generated is "nrniv: GapRod not an array variable
in /cygdrive/C/Documents and Settings/_Irene_/My Documents/Research at WFUMC/Peer review papers/Diencephalon/Retina/Network_Retina_Cells/Rod_Network/Create_Cells.hoc near line 28
GapRod[k] = new gap()"
Thank you
Irene