silencing netstim during simulation.
Posted: Mon May 10, 2021 9:51 pm
Hello
Following other posts on the forum, I want to silence my netstim at a certain time (400ms) during my simulation. To do this I set netcon.active(0), or I've also tried to do netcon.weight=0 according to viewtopic.php?p=17875#p17875. I have a very novice syntax question here. The following if statement gives a syntax error, what is wrong with it?
Thanks for any input.
Following other posts on the forum, I want to silence my netstim at a certain time (400ms) during my simulation. To do this I set netcon.active(0), or I've also tried to do netcon.weight=0 according to viewtopic.php?p=17875#p17875. I have a very novice syntax question here. The following if statement gives a syntax error, what is wrong with it?
Code: Select all
proc connect_cell() {$nc = new NetCon(ns, $o1)}
if (runtime=400){
nc.weight=0
}