Menu

Syntax for saving BJT port currents and doing a log-axis beta-vs-Ic plot

2020-03-14
2020-03-15
  • dick freebird

    dick freebird - 2020-03-14

    Had no luck finding how to properly SAVE a transistor
    port current (syntax) in the manual, stumbled around
    grep-ing examples until I got it to work.

    "show q" will provide the base name (e.g. "@q.xq1.q1" )
    to which you append [portName] to get the save-able
    vector name.

    * example for hfe-vs-Ic plot with log Ic X axis
    .save  @q.xq1.q1[ib] @q.xq1.q1[ie] @q.xq1.q1[ic] i(VB) i(VE)
    .dc vb 0.2 1 10m
    let hfe=abs(@q.xq1.q1[ic]/@q.xq1.q1[ib])+1a
    let ic=abs(@q.xq1.q1[ic])+1a
    * add 1a (atto) to keep log scale plotting 
    * from blowing up at zero / negative values
    plot hfe vs ic xlog
    
     
    • marcel hendrix

      marcel hendrix - 2020-03-15

      Please add the missing lines (the main netlist)?

      -marcel

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.