NMODL and the Channel Builder.
- Posts: 86
- Joined: Thu May 22, 2008 11:54 pm
- Location: Australian National University
The two easiest ways to figure out where you code is going wrong is to print variables, or to print an arbitrary message after certain flow control statements. But I can't figure out how to do this in from NMODL. Is there a way?
- Site Admin
- Posts: 5810
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
Just insert printf() statements into the NMODL source code. Syntax is same as in C. Example:
printf("flag=%d t=%g\n", flag, t)