Main Content

DC Voltage Source

Implement DC voltage source

  • 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.

Examples

The power_dcvoltage example illustrates the simulation of the transient response of a first-order RC circuit.

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

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

Version History

Introduced before R2006a