save model parameter to xml from hoc

Anything that doesn't fit elsewhere.
Post Reply
ubartsch
Posts: 34
Joined: Thu May 19, 2005 11:02 am
Location: CTCN, University of Plymouth
Contact:

save model parameter to xml from hoc

Post by ubartsch »

hi,

i would like to save my model parameters to xml without having to use the gui modelviewer, i.e. by simply using hoc code.
is there any description, turorial on that out there? couldn't find any...

many thanks for some help!

cheers
ullrich

hines
Site Admin
Posts: 1598
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

No documentation. You can explicitly do the same thing the gui is doing without the gui by (the following assumes you have a model loaded):

Code: Select all

load_file("mview.hoc")
objref mv
mv = new ModelView(0)
mv.xml = new ModelViewXML(mv)
mv.xml.xport("temp.xml")

Post Reply