DVM - Design Verification Module

PromoteScalar()

The PromoteScalar() function allows you to copy a specified variable from the test to the overview report. These copied scalars appear in the "Calculated Results" section of the overview report between the design specifications and the spreadsheet-compatible results. This function also allows you to rename the scalars.

In this Topic Hide

The PromoteScalar() function has two versions:

▲ back to top

Example

A scalar value exists with the name "pk_v_R1" and a value of 43.7. The following calls to the testplan will promote the scalar value to the overview report.

Note: The scalar_name argument, pk_v_R1, contains no spaces. The overview_scalar name,  Peak Voltage on R1 (V), uses spaces and parentheses to clarify the description on the report.

▲ back to top

Using PromoteScalar() as a Script Function

PromoteScalar() 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 script function syntax is as follows:

SimplisDVMAdvancedUtilMeasurementPromoteScalar(array, log_file)

where array is a SIMetrix string array with two or three elements: The examples above could be generated in a PostProcess script with the following calls:
Let return = SimplisDVMAdvancedUtilMeasurementPromoteScalar([ 'pk_v_R1', '43.7' ], log_file)
Let return = SimplisDVMAdvancedUtilMeasurementPromoteScalar([ 'pk_v_R1', '43.7', 'Peak Voltage on R1 (V)' ], log_file)

The script function return value may be safely ignored.

▲ back to top

© 2015 simplistechnologies.com | All Rights Reserved