Print from NMODL?

NMODL and the Channel Builder.
Post Reply
Bill Connelly
Posts: 86
Joined: Thu May 22, 2008 11:54 pm
Location: Australian National University

Print from NMODL?

Post by Bill Connelly »

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

Re: Print from NMODL?

Post by ted »

Just insert printf() statements into the NMODL source code. Syntax is same as in C. Example:
printf("flag=%d t=%g\n", flag, t)
Post Reply