Help to send results delays to a .txt file

Vitor Lima
2013-02-01
2013-11-21
  • Vitor Lima
    Vitor Lima
    2013-02-01

    Hello, I'm computer science  student and I'm needing a little help to create an out file in ngspice…

    Where the out file is a .txt with the delays of the circuit. Thinking about I thought to do a vector with the delay times and after that put in out file.

    Any help is very wellcome…

    Some importants points to me are: How write some results in a vector;

     
  • Vitor Lima
    Vitor Lima
    2013-02-01

    sorry, I push enter to jump a line and sended it, so continue…

    Some importants points to me are:

    -How write some results in a vector
    -How to write something in a out file (like .txt)

    Thanks for attention!

     
  • Holger Vogt
    Holger Vogt
    2013-02-02

    Slawon,

    please have a look at the example file
    ngspice/examples/MonteCarlo.sp

    write a vector to a file:
    wrdata file vec
    write file vec
    or use output redirection
    print vec > file.txt

    Holger

     
  • The redirection to a file is a nice trick. I tried suppressing page breaks with

    option NOPAGE=TRUE but still get page breaks. What am I doing wrong or don't understand?

    Thank you, Holger.

     
  • Holger Vogt
    Holger Vogt
    2013-11-20

    Try
    set nobreak=true

    I will have to look for the exact definition of both.

    Holger

     
  • Holger Vogt
    Holger Vogt
    2013-11-20

    It is a little bit more tricky:

    Put the line
    set nomoremode

    into .spiceinit
    (or spinit)

    Holger

     
  • I still get breaks and headers....