Description
This block implements a capacitor differential equation, as Vc(t) = integral(Ic(t)/C).
The differential equation is solved using the backward-Euler integration technique.
Mask
Inputs
Ic(n): This input must be a single-precision signal (Xfloat8_24). It corresponds to the capacitor current, used to compute the voltage it.
reset: This input must be a Bool signal. When active, the voltage across the capacitor is reset to its initial value.
Sync: This input must be a Bool signal. It should be a pulse train whose period is equal to the sample time deltaT provided by the deltaT/C input.
deltaT/C: This input must be a Xfloat8_24 signal. It should be the numerical quotient deltaT/C, where deltaT is the sample time of the block (in seconds) and C is the capacitor capacitance (in Farads).
Vc_init: This input must be a single-precision signal (Xfloat8_24). It corresponds to the initial voltage across the capacitor.
Outputs
Vc: This output is a vector, each element being the voltage computed across a capacitor, in a single floating point format (Xfloat8_24).
Characteristics and limitations
The differential equation is solved using the backward-Euler integration technique, that is Vc(n) = Vc(n-1)+Ic(n-1)*Ts/C.
Sample time: The block minimum sample time is 5 ns. The computation total latency is 80 ns.
Direct Feedthrough | NO |
Discrete sample time | YES |
XHP support | N/A |
Work offline | YES |
If you require more information, please contact https://www.opal-rt.com/contact-technical-support/.