Answered
Flyback Transformer
Simscape Electrical provides some good examples to start with in both technologies. Flyback Converter example (Simscape technol...

3 years ago | 0

Answered
What are the crucial parameters that are to considered in the state space model while estimating the state of charge of batteries ?
A good place to start is Simscape Battery. Check out the SOC Estimator (Kalman Filter) doc page for more insights into how the e...

3 years ago | 0

Answered
generate matlab code for battery state of charge
You need to include a charge/discharge mechanism to protect the battery pack being drained out to 0 SOC. A good place to start i...

3 years ago | 0

Answered
Script Parameter estimation Battery
In newer releases type the following command in MATLAB: openExample('shared_autoblks_mbc/EstEqCircuitLithiumIonBatteryDataExampl...

3 years ago | 0

Answered
Problem to connect simcape (Schmitt trigger) to Simulink (Scope).
It is not possible to connect electrical lines to PS-Simulink converter. The only way to interface electrical (or any other doma...

3 years ago | 0

Answered
ieee 13 node system
A good starting point is https://www.mathworks.com/help/sps/ug/ieee-13-node-test-feeder.html

3 years ago | 0

Answered
Hi all, I have question about battery aging(there is a model in Matlab 2018). It is only for one battery, I wonder how can I parallel some batteries to see how the battery life span will change?
From R2022b, Simscape Battery is the answer. Simscape Battery provides design tools and parameterized models for designing batte...

3 years ago | 0

Answered
How can I link and run a script to work with a simulink model?
Use a MATLAB Function block in Simulink if you want to use MATLAB code in simulation: https://www.mathworks.com/help/simulink/u...

3 years ago | 0

Answered
FFT of live data
Simscape Electrical provides a Fourier Analysis block that can be used to analyze data during simulation.

3 years ago | 0

Answered
Problem in connection of Relay
I suspect trying to connect two blocks from two different technologies wchich won't work. However, without a model or a photo of...

3 years ago | 0

Answered
Simulink Pulse Generator not Working for period in picoseconds
This is possible in MATLAB, but you need to configure the solver properly. If using variable step solver with everything on Auto...

3 years ago | 0

Answered
How to multiply a time variable by a boolean?
It is not possible to connect power lines to Simulink blocks. The circuit you have is incomplete, perhaps you want to use a circ...

3 years ago | 0

Answered
Problem to fix the Parameter of Tabel Based Battery Block in Simulink
SOC must be a vector of length N, T must be a vector of length M. Then R0(SOC,T) must be a matrix of size N-by-M. For example ...

3 years ago | 0

Answered
Ideal switch is not ideal?
It not a fully ideal switch as the block includes ON resistance and OFF conductance. However, the results you are seeing are als...

3 years ago | 0

Answered
How to control the SPST switch in Simulink
If the Threshold width parameter is set to zero, the switch is closed if the voltage presented at the vT control port exceeds th...

3 years ago | 0

Answered
PLANT MODEL VS CONTROL MODEL
Plant model is the mathematical model of the real system, that should have the required level of fidelity to simulate the desire...

3 years ago | 1

| accepted

Answered
NPN BJT switch in Simulink
Simscape Electrical (former simElectronics and Simscape Electronics) has a NPN Bipolar Transistor block since R2008a.

3 years ago | 0

Answered
1-phase PLL by Pierre Giroux - can it be used in Phasor simulation?
A PLL is not used in phasor mode. The purpose of a PLL is to synchronize the phase and frequency of an output signal with that o...

3 years ago | 0

Answered
npn transistor
Been a while since this question was asked but perhaps is still relevant for others. A good starting point is the following exam...

3 years ago | 0

Answered
Flux weakening equation issue
First, the equations are implemented based on constant parameters, basically ignoring some physical phenomena that motor cad may...

3 years ago | 0

Answered
How to creat a fault in mathematical created model in MATLAB
R2023b include a new product called Simulink Fault Analyzer. This can help in your case. Alternatively, you can check the Faulte...

3 years ago | 0

Answered
How to achieve year-round simulation of DC microgrids in a limited time?
I would first check if the sample time in individual components is an integer multiple if the fixed-step size. If you have fixed...

3 years ago | 0

Answered
Problem with Block "Park to Clarke Angle Transform" 2018b
In this block 'offset' can be either 0 for D-axis alignment or pi/2 for Q-axis alignment. If a-axis is aligned with d-axis, offs...

3 years ago | 0

Answered
Open Stator Winding PMSM
R2023a release includes the Velocity Control of Four-Phase PMSM with Open-End Winding example. This example uses custom Simscape...

3 years ago | 0

Answered
dead-time, pwm inverter
The Half-Bridge Driver block in Simscape Electrical provides an abstracted representation of an integrated circuit for driving M...

3 years ago | 0

Answered
PI controller step input
First of all it is not the sum of desired and measured values, it should be the difference, error = desired value - measured val...

3 years ago | 0

Answered
Totem-Pole PFC PI Controller Tuning
Similar question answered: https://www.mathworks.com/matlabcentral/answers/1815000-pi-controller-tuning-for-totem-pole-pfc

3 years ago | 0

Answered
how can I generate a high frequency signal with simulink
It is possible to generate high frequency waveforms. The problem is probably related to the solver settings, basically Simulink ...

3 years ago | 0

Answered
How can I control the speed of a brushed DC motor using PWM and PID?
The DC motor is usually controlled using a cascade control structure with an inner current control loop and an outer speed contr...

3 years ago | 0

Answered
Circuit Breaker refuses to close
This is the Three-Phase Synchronous Machine Control in Simscape Electrical. I can confirm that it works fine in R2022a. The brea...

3 years ago | 0

Load more