Contenuto principale

DC Voltage Source

(To be removed) Implement DC voltage source

The Specialized Power Systems library will be removed in R2026a. Use the Simscape™ Electrical™ blocks and functions instead. For more information on updating your models, see Upgrade Specialized Power System Models to use Simscape Electrical Blocks.

  • DC Voltage Source block

Libraries:
Simscape / Electrical / Additional Components / SPICE Sources

Description

The DC Voltage Source block implements an ideal DC voltage source. The positive terminal is represented by a plus sign on one port. You can modify the voltage at any time during the simulation.

Ports

Conserving

expand all

Specialized electrical conserving port associated with the DC voltage source positive terminal.

Specialized electrical conserving port associated with the DC voltage source negative terminal.

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

Amplitude of the source, in volts (V).

Select Voltage to measure the voltage across the terminals of the DC Voltage Source block.

Place a Multimeter block in your model to display the selected measurements during the simulation. In the Available Measurements list box of the Multimeter block, the measurement is identified by a label followed by the block name:

Measurement

Label

Voltage

Usrc:

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced before R2006a