Professional Documents
Culture Documents
Both the View=>Visible Traces and View=>Add Trace commands allow one
to enter an expression of data. Another method to plot an expression
of available simulation data traces is to move the mouse to the
trace's label and right click. This dialog box also allows you to
set the trace's color and allows you to attach a cursor to the
waveform. LTspice will do a dimensional analysis of the expression
and plot it against a vertical axis labeled with those units. All
waveforms in a plotting pane with the same units are plotted on the
same axis.
For complex data, the functions atan2(,), sgn(), u(), buf(), inv()
uramp(), int(), floor(), ceil(), rand(), min(,), limit(,), if(,,),
and table(...) are not available. The functions Re(x) and Im(x) are
available for complex data and return a complex number with the real
part equal to the real or imaginary part of the argument
respectively and the imaginary part equal to zero. The functions
Ph(x) and Mag(x) are also available for complex data and return a
complex number with the real part equal to the phase angle or
magnitude of the argument respectively and the imaginary part equal
to zero. The function conj(x) is also available for complex data and
returns the complex conjugate of x.
Operand Description
& Convert the expressions to either side to
Boolean, then AND.
| Convert the expressions to either side to
Boolean, then OR.
^ Convert the expressions to either side to
Boolean, then XOR.
+ Addition
- Subtraction
* Multiplication
/ Division
** Raise left hand side to power of right hand side.
Name Value
E 2.7182818284590452354
Pi 3.14159265358979323846
K 1.3806503e-23
Q 1.602176462e-19
The waveform viewer can integrate a trace to obtain the average and
RMS value over the displayed region. First zoom the waveform to the
region of interest, then move the mouse to the label of the trace,
hold down the control key and left mouse click.
3. Display the Fourier Transform of a Trace.
You can use the menu command View=>FFT to perform a Fast Fourier
transform on various data traces.