How to format output requests from a VWSIM simulation.
The user can request voltage, phase, and current values from a circuit simulation. The request types are:
The request is a cons pair of the form (type . name). The
type is paired with the name of a node or device. The name is
expected to be of the form
SPICE, the names are separated by | instead of /), which is the
flattened hierarchical name of the node or device. That is, the name
consists of the primitive name, followed by the heirarchy of
module (subcircuit) names that contain the primitive. For example,
consider the following RC circuit with a module defined in SPICE
.SUBCKT SUB_DEF A C RR1 A B 1 CC1 B C 1 .ENDS VVS1 V1 GND pwl (0 0 1 1) SUB0 A GND SUB_DEFAfter the circuit is flattened, the resistor has the name
'((DEVV . RR1/SUB0) (DEVI . CC1/SUB0))In SPICE, we would provide .print commands of the following form:
.print DEVV RR1|SUB0 .print DEVI CC1|SUB0
A complete table of acceptable requests is shown below. X indicates that the command can be used to get the value of that node or device.