The ArbitraryBodePlot() function can create the following types of curves:
Although the Bode Plot Probe - w/ Measurements schematic symbol has similar functionality, the ArbitraryBodePlot() testplan function includes formatting options that increase the flexibility of this function. One such option makes it possible to probe between schematic hierarchical levels.
For example, plotting the gain and phase of the compensation error amplifier in the LTC3406B circuit is difficult with the schematic-based probe because the output of the error amplifier is not at the top level of the hierarchy. Bringing the output of that error amplifier to the top level would require a modification to the LTC3406B symbol. Using the ArbitraryBodePlot() function, however, solves this problem because with this function, you can directly probe the nets in the schematic hierarchy and generate the curves without making any changes to the schematic.
The ArbitraryBodePlot() function has four different forms which are described in the testplan documentation. This example uses the last form which specifies the four node names directly and has the following syntax with the arguments explained in the table below:
ArbitraryBodePlot(netIN+, netIN-, netOUT+, netOUT-, curve_name, graph_name, grid_index, axis_name, OPTIONAL_PARAMETER_STRING)
Arg # | Argument Name | Description |
1 | netIN+ | The positive input node |
2 | netIN- | The negative input node |
3 | netOUT+ | The positive output node |
4 | netOUT- | The negative output node |
5 | curve_name | The names for the curve |
6 | graph_name | The name of the graph as seen on test report* |
7 | grid_index | Identifies the grid on which to place the curve* |
8 | axis_name | Identifies the axis on a particular grid* |
9 | OPTIONAL_PARAMETER_STRING | Contains the optional curve formatting parameters** |
* For additional information about graph_name, grid_index, and axis_name, see Graph Address System.
** For additional information about OPTIONAL_PARAMETER_STRING, see Optional Parameters.
The ArbitraryBodePlot() curve function has differential voltage inputs. In this example, the negative nodes are the global ground where node =0, which means that both netIN- and netOUT- equal 0.
The positive input nodes can be derived from the pin names on the symbols. For example, the positive input to the probe is the SENSE pin on the load I1. Since the load is a top-level symbol, the net attached to the pin name uses the reference designator and the pin name separated by a period: I1.#SENSE.
To find the net name for the output of the error amplifier, which is not at the top level, follow these steps:
Net name at cursor is U1.U3.#OUT
ArbitraryBodePlot(I1.#SENSE, 0, U1.U3.#OUT, 0, ...)
For this example, use the values for each argument as listed in the table below:
Argument Name | Value | Notes |
curve_name | DVM Error Amplifier | Using the curve_name
that you specify, the function appends "Gain" or "Phase" to generate unique
names for the gain and phase curves. In this case, the names will be
|
graph_name | E/A Gain and Phase | Title in the graph legend box on the individual test reports. |
grid_index | ignoreme | Since these two arguments are optional in this form of the function, this value is a placeholder.* |
axis_name | ignoreme |
* In other forms of the ArbitraryBodePlot() function that generate one curve, these arguments are both required to specify the curve locations.
In this example, you specify the curve locations with the final argument, OPTIONAL_PARAMETER_STRING, which has multiple formatting options documented in the testplan documentation. For this example, use the following options:
The syntax of the final argument is: curve=splitgain color=blue
The complete ArbitraryBodePlot() function is as follows:
ArbitraryBodePlot(I1.#SENSE, 0, U1.U3.#OUT, 0, DVM Error Amplifier , E/A Gain and Phase, ignoreme, ignoreme, curve=splitphase color=blue)
To add this function to a testplan, follow these steps:
ArbitraryBodePlot(I1.#SENSE, 0, U1.U3.#OUT, 0, DVM Error Amplifier , E/A Gain and Phase, ignoreme, ignoreme, curve=splitgain color=blue)
*** | |||||
---|---|---|---|---|---|
*** 6.6.3_arbitrarybodeplot.testplan arbitrarybodeplot testplan for DVM tutorial section 6.6.3 | |||||
*** | |||||
*?@ Analysis | Objective | Create | Source | Load | Label |
*** | |||||
Ac | BodePlot(OUTPUT:1) | ArbitraryBodePlot( I1.#SENSE, 0, U1.U3.#OUT, 0, DVM Error Amplifier, E/A Gain and Phase, ignoreme, ignoreme, curve=splitgain color=blue) | SOURCE(INPUT:1, Maximum) | LOAD(OUTPUT:1, 100%) | Ac Analysis|Bode Plot|Vin Maximum|100% Load |
To run the testplan from the schematic in section 6.5.1, follow these steps: