Code: Select all
dos('C:\nrn60\bin\nrniv.exe -nogui runstim2.hoc')
Along related lines, is it possible to autoclose the window that opens up when a hoc file runs instead of clicking on it and pressing ctrl + d? Thanks.
Code: Select all
dos('C:\nrn60\bin\nrniv.exe -nogui runstim2.hoc')
Code: Select all
!C:\nrn60\bin\nrniv.exe -nogui runstim2.hoc &
Code: Select all
run()
current_matrix = new Matrix()
savcurrent1 = new File()
savcurrent1.wopen("Axon.csv")
savcurrent2 = new File()
savcurrent2.wopen("APAxon.csv")
savcurrent3 = new File()
savcurrent3.wopen("Xs.csv")
//SAVING THE AXON VOLTAGES
current_matrix.resize(rec.object(0).size(),segs)
for ii = 0, rec.count()-1 {
current_matrix.setcol(ii,rec.object(ii))
}
current_matrix.fprint(0,savcurrent1, " %g")
savcurrent1.close()