Main Content

Controlled Current Source

Implement controlled current source

  • Controlled Current Source block

Libraries:
Simscape / Electrical / Specialized Power Systems / Sources

Description

The Controlled Current Source block converts the Simulink® input signal into an equivalent current source. The generated current is driven by the input signal of the block. The positive current direction is as shown by the arrow in the block icon.

You can initialize the Controlled Current Source block with a specific AC or DC current. If you want to start the simulation in steady state, the block input must be connected to a signal starting as a sinusoidal or DC waveform corresponding to the initial values.

Note

The Simulink input signal must be a complex value (phasor) when you are using the Controlled Current Source block in a phasor simulation, because in this case, Simscape™ Electrical™ Specialized Power Systems software does not automatically convert the input signal from time-domain into complex (phasor) signal.

Examples

The power_controlcurr example uses a Controlled Current Source to generate a 60-Hz current modulated at 5 Hz.

Ports

Input

expand all

Simulink signal that you want to convert into an equivalent current source.

Conserving

expand all

Specialized electrical conserving port associated with the positive terminal.

Specialized electrical conserving port associated with the 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.

Whether to initialize the Controlled Current Source block with the specified Initial current, Initial phase, and Initial frequency parameters.

Type of current source. Select AC (default) to initialize the Controlled Current Source Block as an AC current source. Select DC to initialize the Controlled Current Source block as a DC current.

Dependencies

To enable this parameter, select the Initialize parameter.

Initial peak current for the initialization of the source, in amperes (A).

Dependencies

To enable this parameter, select the Initialize parameter.

Initial phase for the initialization of the source, in degrees.

Dependencies

To enable this parameter, select the Initialize parameter and set Source type to AC.

Initial frequency for the initialization of the source, in hertz (Hz).

Dependencies

To enable this parameter, select the Initialize parameter and set Source type to AC.

Select Current to measure the current flowing through the Controlled Current 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

Current

Isrc:

Extended Capabilities

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

Version History

Introduced before R2006a