Visualizing Simulation Data Using Graphs and Tables

From Emagtech Wiki
Revision as of 21:26, 10 July 2014 by Kazem Sabet (Talk | contribs)

Jump to: navigation, search

When you run a "Live Simulation" in B2.Spice A/D, the simulation results are typically displayed in real time using either virtual instruments or circuit animation on your schematic. At the end of B2.Spice A/D Tests, the simulation results are normally displayed using graphs, tables or both. B2.Spice A/D has a powerful "Data Manager" that can generate a variety of graphs types and tables for visualizing and displaying your test results. Some virtual instruments allow you to record the simulation data during a live simulation and then plot them on a graph, too.

At the end of an analog or mixed-mode circuit simulations, the node voltages, branch currents and device powers are typically available for graphing or tabulation. Voltages, current and powers are usually plotted as a function of time or frequency. In the case of a Network Analysis test, port characteristics like scattering, impedance or admittance parameters are also computed. At the end of a digital circuit simulation, it is the state of the digital inputs and outputs that you would like to visualize.


The lower section of a test panel.

Setting Up Circuit Observables

Even though all the circuit voltages currents are computed during a simulation, they are not automatically plotted for the obvious reason of avoiding congested and confusing graphs or enormous data tables. Therefore, you have to specify which circuit observables you would like to display at the end of a simulation. At the bottom of each Test Panel, there is a section dedicated to the specification of output results. Two checkboxes labeled "Graph" and "Table" and two buttons labeled "Preset Graph Plots" and "Preset Table Plots" are used to define all the observables to be graphed or tabulated. Both buttons open up the "Edit Plot List" dialog. You can either graph the output data or display them in tables or have it both ways. Note that the graph and table specifications are independent of each other and must be done separately.

The Edit Plot List dialog consists of three tables. The table on the left shows the hierarchy for the case of multilevel signals. In the middle table (Signal Name List) you see a list of the available signals for plotting. The table on the right (Graph Name List) lists the signals to be plotted. Select one of more signals from the middle table and use the right arrow "Add-->" button to move them to the right table. You can also select more than one signal using the "Ctrl" key or a range of consecutive signals using the "Shift" key. You may modify and revise the list of the signals to be plotted by moving one or more items from the right table back to the middle table using the left arrow "<--Remove" button.

Besides voltages, currents and powers, B2.Spice A/D allows you to define, calculate and graph or tabulate new custom plots.

The Edit Plot List dialog.
The Edit Signal Plot dialog.


An Op-Amp circuit with two voltage probes.

Using Probes as Observables

A simpler way of defining voltage and current observables is using "Probes". B2.Spice A/D provides two types of probes: Voltage Probes and Current Probes. Both can be accessed from the Schematic Toolbar at the top of the screen or by selecting "Probe Mode" in the Schematic Editor's Edit Menu. The keyboard shortcut "Ctrl+P" can be used for this purpose, too. While in the Probe Mode, you can place as many probes as you want. Voltage probes must be placed at the circuit nodes or on the wires, while current probes must be placed on a device pin. Voltage signal are always measured with respect to the circuit's ground. The direction of a current signal is determined by its underlying device pin, which shows the current's entrance into the device. The opposite figure shows a typical operational amplifier (Op-Amp) circuit with two voltage probes placed at its input and output nodes. The figure below it shows a graph of the plotted probe voltages.

A Cartesian graph showing the input and output voltages of the Op-Amp circuit.
A table displaying the input and output voltages of the Op-Amp circuit.








Back to B2.Spice A/D Wiki Main Page