Contenu principal

DC Voltage Source

R2026b

Constant voltage source

  • DC Voltage Source block

Libraries:
Simscape / Electrical / Additional Components / SPICE Sources

Description

The DC Voltage Source block represents a constant voltage source whose output voltage value is independent of the current through the source.

Examples

Ports

Conserving

expand all

Electrical conserving port associated with the DC current source positive voltage

Electrical conserving port associated with the DC current source negative voltage

Parameters

expand all

Value of the DC output voltage, in V.

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"ee_lib/Additional Components/SPICE Sources/DC Voltage Source"

Example: add_block("ee_lib/Additional Components/SPICE Sources/DC Voltage Source","myModel/myBlock",MakeNameUnique="on")

Extended Capabilities

expand all

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

Version History

Introduced in R2008a