CurrentConstant
Current Source
![]()
Library
Spice/Analog/Basic
Description
The ConstantCurrent block is a simple source to produce an ideal constant current (defined as a parameter).
The + and - are the positive and negative nodes. A positive current is assumed to flow from the + to - through the source.
No internal resistance is modeled.
Parameters

| Name | Label | Description | Data Type | Valid Values |
|---|---|---|---|---|
sp_I | Current Value | Value of the DC current source (amperes) | Scalar | |
sp_Spice | Additional Spice Parameters | For more details, see the section | String |

| Name | Label | Description | Data Type | Valid Values |
|---|---|---|---|---|
use_ac | Use AC | Check this parameter to set the AC parameters | Number | 0 |
ac_magnitude | AC Magnitude | Value of the AC current source | Scalar | |
ac_phase | AC Phase | Value of the AC phase | Scalar |
Ports
| Name | Type | Description | IO Type | Number |
|---|---|---|---|---|
V+ | implicit | Positive pin | input | 1 |
V- | implicit | Negative pin | input | 2 |