next up previous contents index
Next: Plot Variables Up: Variables Previous: Shell Variables   Contents   Index

Command Specific Variables

These variables control the operation of specific WRspice commands and functions. Most of these variables can be set indirectly from the Commands tool in the Tools menu of the Tool Control window.

appendwrite
When set, data written with the write command will be appended to the rawfile, if the rawfile already exists. If not set, the rawfile will be overwritten.

checkiterate
This sets the binary search depth used in finding operating range extrema in operating range analysis initiated with the check command. It can be set to an integer value 0-10. If not set or set to zero, the search is skipped.

diff_abstol
This variable sets the absolute error tolerance used by the diff command. The default is 1e-12.

diff_reltol
This variable sets the relative error tolerance used by the diff command. The default is 1e-3.

diff_vntol
This variable sets the absolute voltage tolerance used by the diff command. The default is 1e-6.

dpolydegree
This variable sets the polynomial degree used by the deriv() function for differentiation. If not set, the value is 2 (quadratic). The valid range is 0-7.

editor
This variable is set to the name or path of the text editor to be used within WRspice. This overrides the SPICE_EDITOR and EDITOR environment variables. If no editor is set, the internal editor xeditor is used if graphics is available, otherwise the vi editor is used.

filetype
This variable can be set to either of the keywords ascii or binary. It determines whether ascii or binary format is used in the generated rawfiles. The default is ascii, but this can be overridden with the environment variable SPICE_ASCIIRAWFILE, which is set to ``1'' (for ascii), or ``0'' (zero, for binary).

fourgridsize
When a fourier command is given, the data are first interpolated onto a linear grid. The size of the grid is given by this variable. If unspecified, a size of 200 is used.

helpinitxpos
This variable specifies the distance in pixels from the left edge of the screen to the left edge of the help window, when it first appears. If not set, the value taken is 100 pixels.

helpinitypos
This variable specifies the distance in pixels from the top edge of the screen to the top edge of the help window, when it first appears. If not set, the value taken is 100 pixels.

helppath
This variable specifies the search path used to locate directories containing help database files. This variable takes its initial value from the SPICE_HLP_PATH environment variable, if set, otherwise it assumes a built-in default ``( /usr/local/lib/xictools/wrspice/help )'', or, if XT_PREFIX is defined in the environment, its value replaces ``/usr/local''.

mplot_cur
This variable contains the name of the last margin analysis output file generated. This variable can be set, but has no effect, as the file names are generated internally.

nfreqs
This variable specifies how many multiples of the fundamental frequency to print in the fourier command. If not set, 10 values are printed.

noeditwin
If this boolean variable is set, no window is created for the text editor. This is desirable for editors that create their own windows.

nopadding
If set, binary rawfiles with vectors of less than maximum length are not zero padded.

nopage
If set, page breaks are suppressed in the print and asciiplot commands. The nobreak variable is similar, but suppresses page breaks only in the asciiplot command.

When given in the .options line, page ejects are suppressed in printed output, in batch mode.

noprintscale
When doing a print col, the value of the scale variable is usually printed in the first column of each page. Setting this boolean variable suppresses this.

numdgt
This variable specifies the number of significant digits to print in print, asciiplot, fourier, and some other commands. The default precision is six digits.

This variable sets the number of significant digits printed in output from batch mode, when used in the .options line.

rawfile
This variable sets the default name for the rawfile to be produced. The default is as entered with the -r command line option, or ``rawspice.raw''.

rawfileprec
This variable sets the number of digits used to print data in an ascii rawfile. The default is 15.

rhost
This variable specifies the name of the default machine to submit remote simulations to. This machine must have a wrspiced daemon running. The default machine can also be specified in the SPICE_HOST environment variable, which will be overridden if rhost is set. Additional machines can be added to an internal list with the rhost command. The host name can be optionally suffixed with a colon followed by the port number to use to communicate with the wrspiced daemon. The port must match that set up by the daemon. If not given, the port number is obtained from the operating system for ``spice/tcp'' or 3004 if this is not defined.

rprogram
The name of the program to run when an rspice command is given. If not set, the program path used will be determined as in the aspice command.

spectrace
This enables messages to be printed during Fourier analysis with the spec command, for debugging purposes.

specwindow
This variable is set to one of the following strings, which will determine the type of windowing used for the Fourier transform in the spec command. If not set, the default is hanning.

bartlet Bartlet (triangle) window
blackman Blackman order 2 window
cosine Hanning (cosine) window
gaussian Gaussian window
hamming Hamming window
hanning Hanning (cosine) window
none No windowing
rectangular Rectangular window
triangle Bartlet (triangle) window

specwindoworder
This can be set to an integer in the range 2-8. This sets the order when the gaussian window is used in the spec command. If not set, order 2 is used.

spicepath
This variable can be set to a path to a simulator executable which will be executed when asynchronous jobs are submitted with the aspice command. If not set, the path used will default to the value of the environment variable SPICE_PATH. If this environment variable is not set, the path is constructed from the value of the environment variable SPICE_EXEC_DIR prepended to the name of the presently running program. If the SPICE_EXEC_DIR variable is not set, the path used is that of the presently running WRspice.

units
If this variable is set to ``degrees'', all trig functions will use degrees instead of radians for the units of their arguments. The default is ``radians''.


next up previous contents index
Next: Plot Variables Up: Variables Previous: Shell Variables   Contents   Index
Stephen R. Whiteley 2006-10-23