Waveform units?

Hi All,

I am wondering what are the supported waveform units in qraw?

I have checked that by default its always voltage or current for branch current and node voltage.
in qraw, it is written as:
v(n02) voltage
i(c1) current

and actually we can easily change the unit on the waveform viewer by editing the .qraw file in Notepad++, i.e.:
v(n02) power or v(n02) frequency, then when you plot that node the waveform viewer will use (W) or (Hz) on the vertical unit

Just curious about other units?

So far, i notice these units:

  • voltage
  • current
  • frequency
  • power

And is there anyway set this unit from the schematic viewer instead of need to tinkering on the Notepad++ and also avoid needing to redo it everytime we run the simulation.

1 Like
; unit conversion from voltage
.func VtoNoUnit(y) y/1V; no unit
.func VtoI(y) y/1V*1A; Current (A)
.func VtoR(y) y/1A; Resistance (Ω)
.func VtoTime(y) y/1V*1s ;Time (seconds)
.func VtoFreq(y) y/1V/1s ;Frequency (Hz)
.func V2Charge(y) y/1V*1A*1s ;Charge (Coulombs)
.func V2Power(y) y*1A ;Power(W)
.func V2Energy(y) y*1A*1s ;Energy(J)
.func V2Temp(y) y/1V*1°C ;Temperature (°C)
.func V2Admittance(y) y/1V/1V*1A ;Admittance (Ʊ)

3 Likes

Super Kelvin to the rescue… Thanks a lot

1 Like