Search found 54 matches

by JimH
Tue Dec 18, 2012 2:01 pm
Forum: OS X
Topic: Neuron 7.2 Python error
Replies: 2
Views: 5985

Re: Neuron 7.2 Python error

In case anyone else runs into this problem:
I ran into this same error and I am pretty sure I got 7.2 running only by installing the developer tools.
by JimH
Tue Dec 18, 2012 10:38 am
Forum: OS X
Topic: isatty vs notatty mac
Replies: 6
Views: 6711

Re: isatty vs notatty mac

That makes sense. What I am seeing on my mac is: - isatty buffered stdout, not sure about prompt, waits until program close to flush - notatty, unbuffered stdout, no prompt, flushes when waiting for stdin This is in contrast to my windows install of 7.2 which works as would be expected. I tried the ...
by JimH
Mon Dec 17, 2012 10:21 pm
Forum: OS X
Topic: isatty vs notatty mac
Replies: 6
Views: 6711

Re: isatty vs notatty mac

I also just confirmed that -isatty does flush upon quitting the process => quit()
which I thought would happen for -notatty
by JimH
Mon Dec 17, 2012 10:09 pm
Forum: OS X
Topic: isatty vs notatty mac
Replies: 6
Views: 6711

isatty vs notatty mac

I've using Java to do ipc with NEURON on a mac. I've setup something similar using .NET on windows (and Java) and had some success. When I tried the Java code on my mac, I would not get any input back from the process. I was using the option -isatty. Changing the option to -notatty made things work,...
by JimH
Thu Aug 30, 2012 4:05 pm
Forum: Other questions
Topic: List all variables
Replies: 1
Views: 1343

List all variables

The following seems like it should be obvious, but I haven't been able to find it anywhere. How do I list all currently defined variables in the hoc interpreter?

Thanks,
Jim
by JimH
Thu Aug 30, 2012 3:49 pm
Forum: Other questions
Topic: help understanding functions
Replies: 3
Views: 2132

Re: help understanding functions

It does in fact work. I was a bit surprised that node_section_list doesn't need to be declared as a SectionList() here. Most of the examples I have seen in the documentation start off with creating a new object inside of a function, as opposed to working with one that has already been created elsewh...
by JimH
Thu Aug 30, 2012 2:16 pm
Forum: Other questions
Topic: Suppress "First Instance Of"
Replies: 5
Views: 6611

Re: Suppress "First Instance Of"

That is essentially what I am doing. I am running 7.2 but controlling/communicating with it via Matlab and the stdin/stdout pipes. For the majority of code calls I am just calling functions but when defining variables I see the output described. Perhaps this could be disabled via a startup option ??...
by JimH
Thu Aug 30, 2012 10:13 am
Forum: Other questions
Topic: help understanding functions
Replies: 3
Views: 2132

help understanding functions

After quite a bit of playing around I think I have a function in which you pass in a list of sections (SectionList) and it creates a set of vectors for recording the membrane potential at each segment for each section in the list. I've spent a lot of time trying to understand procedures and function...
by JimH
Wed Aug 29, 2012 5:58 pm
Forum: Other questions
Topic: Suppress "First Instance Of"
Replies: 5
Views: 6611

Suppress "First Instance Of"

This is a bit of a continuation of the following thread:
http://www.neuron.yale.edu/phpBB/viewto ... tput#p6592

The suggestion of suppressing the output with curly brackets did not work. Any other suggestions?

Thanks,
Jim
by JimH
Wed Aug 29, 2012 5:08 pm
Forum: Other questions
Topic: Working with sections in procedures
Replies: 3
Views: 1346

Re: Working with sections in procedures

I was thinking about putting that small bit of code within a procedure. I can't seem to define a procedure with sections unless those sections already exist. It seems like I can work with sections in procedures if I use sectionRef(). The sectionRef doesn't appear to allow indexing into a section arr...
by JimH
Wed Aug 29, 2012 12:25 pm
Forum: Other questions
Topic: Working with sections in procedures
Replies: 3
Views: 1346

Working with sections in procedures

I was hoping to create a procedure which took an array of sections and connects them end to end. I was hoping to declare this procedure on startup. The latter statement is important because from what I gather procedures and functions have access to their parent's workspace, meaning if I previously d...
by JimH
Thu Jul 19, 2012 9:09 pm
Forum: MSWin
Topic: Neuron and Matlab binary communication, IPC
Replies: 1
Views: 8012

Neuron and Matlab binary communication, IPC

Hi all, I'm using MS Windows and I've manged to setup back and forth communication between NEURON and Matlab using stdin/stdout. I can use this communication method to pass small variables back and forth using the programs' interpreters to process new variables (i.e. something like my_var = 5). I wa...
by JimH
Thu Jun 21, 2012 9:36 pm
Forum: Other questions
Topic: Passing vector data
Replies: 3
Views: 1655

Re: Passing vector data

Is it possible to use stdin with a byte stream instead of a string representation of a number? I.e. I would like to be able to say, read the next eight bytes as a double.
by JimH
Sat Jun 09, 2012 5:39 pm
Forum: Other questions
Topic: Passing vector data
Replies: 3
Views: 1655

Passing vector data

Is it possible to pass vector data via stdin? I can do simple assignments or even create a decently sized string, but it is unclear if it is possible to just create a block of memory which can then be read from to create something like an instantiation of a vector class.

Thanks,
Jim
by JimH
Wed Jun 06, 2012 10:47 pm
Forum: MSWin
Topic: nrniv window
Replies: 3
Views: 7969

Re: nrniv window

It is actually through a system call in Matlab. I've nearly finished a process to support stdin/stdout back and forth communication but I need some results ASAP and all I was getting was flashing screens as a new window would pop up and close. I added: start /B /WAIT and now it seems to be working e...