In this topic, you will learn the terminology used in DVM and the principles governing the application of DVM to your designs. There are very few rules, but those rules which exist are non-negotiable and you will have to live by these rules in order to use DVM.
To download the examples for the Applications Module, click Applications_Examples.zip
In this topic:
This topic addresses the following key concepts:
In this topic, you will learn the following:
The following slideshow illustrates the sequence of actions that DVM takes as it executes a single test from the Built-In Sync Buck testplan. The test used for this example is the same BodePlot test described in the previous section.
Although the slideshow illustrates actions that DVM takes for a single test from the built-in testplan, the DVM functionality encompasses much more than just Bode plot testing. Built-in testplans for one-input, one-output and one-input, two-output DC/DC converters are provided and include a full suite of tests that designers often run on power supplies, including Step Line, Step Load, Input and Output Impedance, and more.
Additionally a full suite of AC/DC tests are available in the one-input, one-output and thee-input, one-output Built-In AC/DC testplans.
For a full list of available tests, see the the following topics:
DVM also provides the ability to customize testplans to suit any design. For details about how to customize test plans, see Customizing Testplans in the DVM Tutorial.
At the very minimum, preparing a schematic for DVM requires you add the basic DVM control symbol. This symbol doesn't store the Symbolic Values for the input voltage range or full load current; therefore, schematics using this symbol cannot run the built-in testplans which use the test Objective testplan entries. For this reason, the basic DVM Control Symbol has limited functionality and will not be used in this course.
To add the input source, follow these steps:
The 3 and 4-terminal DVM output loads have a SENSE (3-terminal) or a differential SENSE (4-terminal) connection. These extra pins allow DVM to include the injected AC perturbation source and Bode plot probe that are required for closed-loop AC analysis. DVM automatically inserts these components into the load subcircuit definition for the Bode plot tests. For this circuit you will use the 3-terminal output load.
To add the 3-terminal output load, follow these steps:
To place a DVM control symbol, follow these steps:
It is important to note that when you place the DVM Control Symbol after placing the source and load symbols, DVM performs a number of housekeeping tasks. These include:
The DVM control symbol has been configured with one managed input source (V1) and one managed output load (I1). When you placed the control symbol on the schematic with analysis directives already set from the
dialog, these directives were copied onto the control symbol. Since the program has no way of knowing what the input and output voltages and load currents are, you need to change these parameters to suit this particular circuit.To change the circuit specifications, follow these steps:
Parameter | Value | Units |
Circuit Name | test_llc_converter | |
Circuit Description | LLC Converter | |
Switching Frequency | 85k | Hz |
Parameter | Value | Units |
Voltage | ||
Nominal | 380 | V |
Minimum | 360 | V |
Maximum | 400 | V |
Misc. | ||
Source Resistance | 0 | Ohm |
Parameter | Value | Units |
Voltage | ||
Nominal | 24 | V |
Tolerances | ||
Peak to Peak | 120 | mV |
Current | ||
Maximum | 5 | A |
Light Load | ||
@ Vin Min | 0.5 | A |
@ Vin Max | 0.5 | A |
In the Key Concepts section you learned that to run DVM, you need a prepared schematic and a testplan to run on that schematic. In Part I you prepared your schematic for DVM, and in Part II you will learn about testplan syntax, and how to edit testplans.
The best way to learn how to create and modify testplans is to look at a prepared testplan. In the Applications_Examples.zip file are a number of testplans. In the following sections you will use the apps_d_1_llc_converter_efficiency.testplan file.
The best program to view and edit testplan files is Microsoft Excel or a similar spreadsheet program. If you use one of these programs, be sure to save your file as tab delimited text, as DVM cannot read a Excel preadsheet file.
*** | ||||||||
*** apps_d_1_efficiency_multi_step.testplan | ||||||||
*** | ||||||||
*?@ Label | Objective | Analysis | Analysis | Change( V1.DC_VOLTAGE , 380 ) | Change( I1.LOAD_RESISTANCE , 5 ) | Create | Create | Postprocess |
*** | ||||||||
Efficiency|Step VIN and ILOAD | Steady-State | Multi-Step( ILOAD , LIN , 10 , 0.5 , 5.0 ) | Multi-Step( VIN , LIST , 360 , 380 , 400 ) | {VIN} | {RLOAD} | Alias( Efficiency , Efficiency_WHEN_VIN_%VIN% ) | Alias( Efficiency , Efficiency_WHEN_ILOAD_%ILOAD% ) | |
Efficiency|Generate Efficiency Curves | NoSimulation | ./scripts/apps_d_1_create_xy_plots.sxscr |
Let's examine the testplan row by row and then column by column. The first three rows are comments and are completely optional.
*** |
*** apps_d_1_efficiency_multi_step.testplan |
*** |
As long as the first character in the line is a *, you may change the text in these line without affecting DVM operation.
The next row is the extremely important header row. The header row tells the program what type of entries to expect in the following rows. It is assumed that all electrical tests are entered after the header row. Here is the header row and we will examine this in more detail:
*?@ Label | Objective | Analysis | Analysis | Change( V1.DC_VOLTAGE , 380 ) | Change( I1.LOAD_RESISTANCE , 5 ) | Create | Create | Postprocess |
*?@ Labeldescribes the test conditions. The Label is not electrically active and doesn't control the schematic configuration or measurements. It is simply there to provide the user an idea of the function of each test.
Objectivetells the program to expect one of the pre-defined test objectives. For example, there exists a BodePlot() Test Objective which measures the loop response of the circuit.
Analysiscan be used to modify the objective with a Multi-Step Analysis or other analysis types. Valid analysis entries are documented in the DVM Analysis topic.
Createallow you to create scalars or curves after the simulation has completed.
postprocessallows you to run a post process script after the simulation completes. In section Generating Efficiency Plots with Multi-Step Runs in DVM, you will see how you can use the CreateXYScalarPlot() in a post process script to create efficiency plots in DVM.
A couple of comments are in order and some conclusions can be made from this testplan header row.
FunctionName( argument1, argument2, …, argumentn )This notation is common to several programming languages. The argument types, order, and minimum number of arguments are typically fixed by the function definition. The Change function takes two arguments, the first being the property address and the second, the property value. The property address is simply the reference designator and the property name separated by a period (.), so V1.DC_VOLTAGE tells the program to first find V1 and then change the DC_VOLTAGE property.
Now that you understand how the header entries work, you will be able to understand the two tests which are on lines 6 and 7 of this testplan. The first test is on line 6:
Efficiency|Step VIN and ILOAD | Steady-State | Multi-Step( ILOAD , LIN , 10 , 0.5 , 5.0 ) | Multi-Step( VIN , LIST , 360 , 380 , 400 ) | {VIN} | {RLOAD} | Alias( Efficiency , Efficiency_WHEN_VIN_%VIN% ) | Alias( Efficiency , Efficiency_WHEN_ILOAD_%ILOAD% ) |
As discussed previously, the label is non-electrical but hints that this test will measure the efficiency of the converter while stepping the VIN and ILOAD parameters.
The Objective is set to Steady-State. This test objective sets the input voltage source to a DC source and the output load to a resistive load. It then runs a POP analysis on the converter and by default makes the Efficiency measurement. Measurements can be added or removed on an objective by objective basis with the DVM Measurements dialog.
The Multi-Step( ILOAD , LIN , 10 , 0.5 , 5.0 ) and Multi-Step( VIN , LIST , 360 , 380 , 400 ) analysis entries step the ILOAD and VIN parameters using a nested multi-step simulation. You can add Analysis columns to step additional parameters. Although there is no practical limit to the number of parameters which can be stepped, the number of simulation steps increases geometrically as the number of parameters increase. In this example, the input voltage is stepped over three values and the load current over 10 values, making for a total of 30 simulation steps.
.VAR RLOAD = {24/ILOAD}
The next two entries use the Alias() entries. The Alias() function creates a copy of the scalar name in the first argument, in this case Efficiency, and renames the copy with the name given in the second argument, in this case Efficiency_WHEN_VIN_%VIN%. Notice the %VIN% in the new scalar name. This is a "template", and uses the same template replacement rules you learned in 5.1 Passing Parameters into Subcircuits Using the SIMPLIS_TEMPLATE Property. Since the VIN parameter is stepped over three values, 360, 380, and 400, three scalar names will be created:
Each of these scalar names will have 10 values, one for each of the ILOAD steps. This aliasing allows you to categorize scalars based on their stepped parameter value. In the next topic, Generating Efficiency Plots with Multi-Step Runs in DVM, you will see why this is concept is critically important.
In this testplan, the Multi-Step test runs 30 simulations, generating aliased scalars based on the stepped parameter values. In the final test, DVM is instructed to generate summary X-Y plots of these scalars, for example, plot Efficiency_WHEN_VIN_360 on the vertical axis and ILOAD on the horizontal axis. Here is where the power of scalar aliasing is exploited. By creating three scalar aliases, three curves, one for each of the minimum, nominal, and maximum input voltages can be plotted.
In the next topic : Generating Efficiency Plots with Multi-Step Runs in DVM, you will run this testplan and see how it can be modified for other applications.