modifying Netconthreshold...

Anything that doesn't fit elsewhere.
Post Reply
OJAG

modifying Netconthreshold...

Post by OJAG »

Hi All,

Could anyone tell me if there is any way to modify the threshold of one Netcon object while running the simulation, by setting any kind of condition either in hoc or mod files?

Maybe in the Net_Receive block of a new .mod file?

-Imagine that you write something like thIs in your Net_Receive block:

Code: Select all

NET_RECEIVE(weight,a,b(ms))
-Where should I create the variables and define the values for weight, a and b?

and finally

-How can I call this file from my hoc interpreter?



Thanks in advance

OJAG
ted
Site Admin
Posts: 6394
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: modifying Netconthreshold...

Post by ted »

OJAG wrote:Could anyone tell me if there is any way to modify the threshold of one Netcon object while running the simulation
There is not. However, you might be able to achieve the desired effect by using a point process that has a net receive block which contains a WATCH statement (to detect crossing of a user-specified threshold) and a net_event statement (to send events to all netcons that have this point process as their source).

The NMODL code would look something like this:

Code: Select all

NEURON {
  POINT_PROCESS Test
  RANGE thresh
}
PARAMETER { thresh = -20 } : threshold is -20 mV
ASSIGNED { v }
INITIAL {
  net_send(0, 1) : to execute the WATCH statement
}
NET_RECEIVE(w) {
  if (flag == 1) {
    WATCH (v > thresh) 2 : if v crosses thresh in a positive-going direction, send a self event with weight 2
  } else if (flag == 2) {
    net_event(t) : send an event to all NetCons that have this point process as their source
  }
}
The question is, what happens if you try to change the value of thresh in the middle of a simulation?
Post Reply