Code: Select all
noaxons = 300
total = 1450
pol = -1
strdef volfile, recfile
volfile = "vol_testfile.txt"
recfile = "act_testfile.txt"
objref file
objref ve_data
proc get_extpot () {
file = new File(volfile)
file.ropen()
ve_data = new Matrix()
ve_data.scanf(file,noaxons,total)
ve_data.muls(pol)
file.close()
}
get_extpot()
Code: Select all
NEURON -- Release 7.1 (359:7f113b76a94b) 2009-10-26
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
See http://www.neuron.yale.edu/credits.html
loading membrane mechanisms from nrnmech.dll
Additional mechanisms from files
AXNODE75.mod PARAK75.mod ampa.mod gabaa.mod gabab.mod ih.mod ik2.mod isikdr.mod isina.mod it.mod leak.mod nmda.mod sw.mod train.mod
nrniv: EOF in fscan
in C:/Users/Brian Huynh/Desktop/sweeneyaxon_model/LocalNeurons/test_scanf.hoc near line 22
get_extpot()
^
Matrix[0].scanf(File[0]3001450 , , )
get_extpot( )
oc>