How to save a vector to a file?

Anything that doesn't fit elsewhere.
Post Reply
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

How to save a vector to a file?

Post by ted »

I get the following error when trying to save a vector to a file.

Code: Select all

first instance of A
first instance of k1
        0
        1
        1
        1
        1
        1
        1
        1
        1
        1
        1
        1
        1
        1
        1
        1
libpvm [pid3009] /tmp/pvmd.501: No such file or directory
libpvm [pid3009] /tmp/pvmd.501: No such file or directory
libpvm [pid3009] /tmp/pvmd.501: No such file or directory
libpvm [pid3009]: pvm_parent(): Can't contact local daemon
/usr/local/nrn/i686/bin/nrniv: label : object prefix is NULL near line 3
{load_file("stdlib.hoc","clipboard_save") clipboard_save()}
                                                            ^
        clipboard_save()
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

This stuff

Code: Select all

libpvm [pid3009] /tmp/pvmd.501: No such file or directory
libpvm [pid3009] /tmp/pvmd.501: No such file or directory
libpvm [pid3009] /tmp/pvmd.501: No such file or directory
libpvm [pid3009]: pvm_parent(): Can't contact local daemon
is irrelevant unless you are using PVM to implement a workstation cluster.

This message

Code: Select all

/usr/local/nrn/i686/bin/nrniv: label : object prefix is NULL near line 3
{load_file("stdlib.hoc","clipboard_save") clipboard_save()}
                                                            ^
        clipboard_save()
tells me you were trying to use the GUI to save NEURON's clipboard
to a file by doing
NEURON Main Menu / Vector / Save to File
but the clipboard was empty. Before doing this, you must first
fill the clipboard, e.g. by using a Graph's Pick Vector. Click on
the Graph's menu box and select the Pick Vector item. Then
click on a trace plotted in the Graph. Then you can use
NEURON Main Menu / Vector / Save to File

If you are going to do this many times, you will find it more
convenient to do it under program control, using the Vector
class's record() and printf() methods.
Post Reply