Circuit Model and Scenarios
The Circuit Model for this example is a voltage divider circuit with a pre-configured set of Scenarios. Each Scenario contains a different set of resistance values for the two resistors in the circuit, R1 and R2.
In the Configuration Tree, expand Power Electronics Add-On and click Circuit Model.
The Circuit Model File Path points to the currently loaded Circuit Model. Open the file in Simulink to observe the circuit.
(optional) Click Reload to trigger a model update in the System Definition.
Under Scenario Configuration, the Use Scenarios? parameter is enabled. A VeriStand channel called Scenario Index has been automatically added to the tree.
The Scenarios File Path points to the currently loaded Scenarios file. Open the file in a spreadsheet editor to observe the Scenarios and modify them, if desired. See How to Use the Scenarios Feature for more information.
(optional) Click the Refresh button to see additional model information, including the Maximum Number of Scenarios supported by the circuit model and the Number of Scenarios Used by the currently loaded Scenarios file.
Circuit Model File Path: <Circuit Model Scenarios>\Circuit Model\Voltage_Divider.slx
Scenarios File Path: <Circuit Model Scenarios>\Scenarios\Circuit_Model_Scenarios.xls
Sources
The Sources page maps signals to each source of the circuit model. In this example, a Sinewave Generator is used to control the input voltage of the voltage divider.
In the Configuration Tree, expand Circuit Model and click Sources. This page is populated with a list of sources from the circuit model.
The mappings are configured as shown below, with SWG00 mapped to Vsource.
Switches
The Switches page maps signals to each switch of the circuit model. Because the voltage divider circuit model contains no switches, the eHS solver has automatically generated a dummy switch that does not affect the behavior of the simulation.
In the Configuration Tree, expand Circuit Model and click Switches. This page is populated with a list of switches from the circuit model.
Any signal can be mapped to the dummy switch.