Random NetCon
Posted: Thu Aug 02, 2007 5:21 pm
To send random signals to NetCon I can successfuly use NetStim:
Is it possible to use Random? The closest I get is:
This yields the following error:
Code: Select all
create dend
objref rec
dend rec = new ExpSyn(0.5)
objref ns
dend ns = new NetStim(.5)
ns.noise=.9
objref nc
dend nc=new NetCon(ns, rec, 0, 0, 1.0)
tstop=300
run()
Code: Select all
create dend
objref rec
dend rec = new ExpSyn(0.5)
objref rn
rn = new Random(1000)
rn.normal(0,1)
double ns[1]
rn.play(&ns[0])
objref nc
dend nc=new NetCon(&ns[0], rec, 0, 0, 1.0)
tstop=300
run()
/usr/bin/nrniv: NetCon pointer not associated with currently accessed section
Use section ... (&var(x)...) intead of ...(§ion.var(x)...)
in rndpresynpattern.hoc near line 12