DVM - Design Verification Module

PromoteGraph()

The PromoteGraph() function places a copy of the specified graph on the overview report. You can add any number of graphs, define their order, and rename the graphs on the overview report.

In this Topic Hide

PromoteGraph() Syntax

To implement this functionality, the PromoteGraph() function has four versions with one required argument and three optional arguments that provide flexibility.

▲ back to top

Example

Assume that you have a graph named "Bode Plot" and you want a copy of this graph on the overview report with a weight of 100. The following call in the testplan promotes the graph to the overview report.
PromoteGraph(DVM Bode Plot#ac#log, 100)

Using one of the alternate forms allows you to promote graphs by the short name:

PromoteGraph(DVM Bode Plot, 100, 1)

Finally, a graph can be renamed on the overview report using the fourth function definition. This example renames the graph to DVM Bode Plot (Max Vin).

PromoteGraph(DVM Bode Plot, 110, 1, DVM Bode Plot (Max Vin) )

 

▲ back to top

Weighting

The weighting system uses a numeric sorting routine to determine the display order of the overview graphs. The ordering of the overview graphs are as follows, starting at the top of the report:

If, in any of these categories, more than one graph exists with the same weight, the graphs with identical weight are alphabetically sorted by graph name.

Using PromoteGraph() as a Script Function

PromoteGraph() also exists as a SIMetrix script function and can be called from a post-process or final-process script. The arguments for this function when called from a script are slightly different than the testplan version. The function name and arguments are:

SimplisDVMAdvancedUtilMeasurementPromoteGraph(array, log_file)

The Bode Plot examples above could be generated in a post-process script with the following script function calls:

Let return = SimplisDVMAdvancedUtilMeasurementPromoteGraph([ 'DVM Bode Plot#ac#log', '100' ], log_file)
Let return = SimplisDVMAdvancedUtilMeasurementPromoteGraph([ 'DVM Bode Plot', '100', '1' ], log_file)
Let return = SimplisDVMAdvancedUtilMeasurementPromoteGraph([ 'DVM Bode Plot', '110', '1', 'DVM Bode Plot (Max Vin)' ], log_file)
The script function return value may be safely ignored.

▲ back to top

© 2015 simplistechnologies.com | All Rights Reserved