Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Batch mode plotting from netlist/[.cir] file

sharma
2013-03-13
2013-06-12
  • sharma
    sharma
    2013-03-13

    Hi, I am trying to run simple circuits through text based netlists. In these I have .plot statements. In ngspice coomand window, I write
    [code[
    source mynetlist.cir
    run myout.raw

    However I am unable to see the plots of waveforms I requests in .PLOT satements. Can someone help me see plots through batch processing?

    Thanks

     
  • Holger Vogt
    Holger Vogt
    2013-03-13

    plotting to the screen and batch mode operation are contradictory.

    Therefore .plot will only work in true batch mode (ngspice -b -o outputfile inputfile). Then it generates a 'printer plot' to outputfile.

    From the command line '.plot' is not effective, you have to use 'plot' You may add the commands to a .control section in your input file, e.g.

    .control
    run
    plot vec1 vec2 ...
    .endc
    

    Holger

     
  • sharma
    sharma
    2013-03-14

    Thanks for the explanation.