pass an array from hoc to a mod file

NMODL and the Channel Builder.

pass an array from hoc to a mod file

Postby oren » Tue May 16, 2017 8:07 am

Hello,
I am trying to pass a vector (with values) to a mod file. Is it possible? do you an example of doing it? I do not know exactly how to write the mod file so it will accept a hoc Vector.

Thanks.
oren
 
Posts: 53
Joined: Fri Mar 22, 2013 1:03 am

Re: pass an array from hoc to a mod file

Postby ted » Tue May 16, 2017 10:45 am

The appropriate answer depends on why you want to do this. Do you want to
--force some variable to follow a time course specified by the values in the vector
--use the values as entries in a lookup table that defines the voltage-dependence of rate constants

Or is there something else you're trying to do?
ted
Site Admin
 
Posts: 4989
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine


Return to Adding new mechanisms and functions to NEURON

Who is online

Users browsing this forum: Google [Bot] and 1 guest