Answered
Power source (voltage) with controllable amplitude value
In Simscape Electrical you can do this easily using a Controlled Voltage Source or Controlled Voltage Source (Three-Phase).

4 years ago | 0

| accepted

Answered
Is it possible to simulate battery model using Matlab ?
Starting with MATLAB 2022a you can use Simscape Battery to design and simulate EV battery and battery management system. You can...

4 years ago | 0

Answered
Converting continuous time to discrete time with zero order hold
This can be done using [Ad,Bd,Cd,Dd] = c2dm(Ac,Bc,C,D,Ts,'zoh')

4 years ago | 0

Answered
How to obtain this speed load?
In a real vehicle there are several factors such as vehicle dynamics and driving conditions (road incline, wind, etc) that will ...

4 years ago | 1

| accepted

Answered
Error wiring up the "generic rotary actuator"
What is missing is an Electrical Reference connected to the negative terminal of the Generic Rotary Actuator.

4 years ago | 0

Answered
Power and Energy analysis of a electric vehicle
You can check out the following examples in Simscape and Simscape Electrical: Battery Electric Vehicle Model in Simscape IPMSM...

4 years ago | 0

Answered
Optimize parameters from a Simulink Modell
Without Optimization Toolbox, fminsearch is probably your best bet. Depending how your model is structured might make sense to u...

4 years ago | 0

| accepted

Answered
pre-allocation in loop
To preallocate memory for a cell array please check this doc page: https://mathworks.com/help/matlab/matlab_prog/preallocate-me...

4 years ago | 1

| accepted

Answered
Delta connection model required of Asynchronous or Induction Motor in MATLAB Simulink
In Simscape Electrical Induction Machine blocks have both ends of the stator windings exposed. The delta connection can be perfo...

4 years ago | 0

Answered
Error: "Each physical network must be connected to exactly one Solver Configuration block. There is no Solver Configuration block connected to Physical Network with the follow
Every physical network needs a Solver Configuration block. If you have several physical networks and some Simulink Blocks in bet...

4 years ago | 0

Answered
How to programmatically change Simscape block pop-up parameters?
You can use set_param to change the value of the dropdown: >> set_param(gcb,'winding_type','ee.enum.statorconnection.wye') >> ...

4 years ago | 0

Answered
ee_relay_distance_protection command is not working.
The command is working fine in R2022a and R2022b. I believe you are either using an older release which don't have this example,...

4 years ago | 0

| accepted

Answered
Solver is encountering difficulty in simulating model 'Motor2' at time 0.031624045107850746. Simulink will continue to simulate with warnings. Please check the model for error
Hi, It appears that this model has high stiffness. Please look at Simscape Stiffness Impact Analysis for more insights. Might b...

4 years ago | 0

| accepted

Answered
How to add an If/Then Loop in Simulink
Hi, If you need to iterate your algorithm you can use a For Each Subsystem block and put your algorithm inside. This way you ca...

4 years ago | 0

Answered
What is name of this block?
Hi, This is a ‘Three-Phase V-I Measurement’ block from Simscape Electrical/Specialized Power Systems. It looks like a Mux block...

4 years ago | 0

Answered
SimScape Electrical block error for a basic circuit
Hi, You need two things in this model to make it work. A solver configuration block An electrical reference that you can conn...

4 years ago | 0

Answered
How to simulate a DAB open loop in Simscape?
Hi, An electrical reference is required each side of the transformer. The output 0 might be related to the way you define gate ...

4 years ago | 0

Answered
SiC MOSFET model -reg
Hi, The SiC MOSFET model in this example is based on the MOSFET (Ideal, Switching) block. Please check the doc page for more in...

4 years ago | 0

Answered
Type mismatch for equation in SIMSCAPE
Hi, The problem in this model is that a unit mismatch. The integrator is expecting a unitless physical signal while the Current...

4 years ago | 1

| accepted

Answered
Speed from Vehicle is Not Tracking the Speed from Drive Cycle Source
Hi, I have not checked the whole model, but it looks like the way you connect the Longitudinal Driver to the electrical system ...

4 years ago | 0

Answered
Difference between online and offline parameter estimation/identification of a motor?
Hi, Online estimation is estimating the parameters during the operation of the physical system as new data becomes available. F...

4 years ago | 1

| accepted

Answered
Park transform for clockwise rotation of the machine?
Hi, The Park transform can be used for either clockwise or anti-clockwise direction subject to the angle provided. The angle co...

4 years ago | 0

Answered
Include SVPWM block in SimScape electrical example
Hi, In your model I suspect the order of the PWM signals is not right. I suggest using the PWM Generator (Three-phase, Two-lev...

4 years ago | 0

Answered
How can get a pure output current from inverter with different loads?
Hi, To get a pure sinusoidal signal I would use an averaged value converter. You can look at the averaged value converter block...

4 years ago | 0

Answered
I want to link the output of a function in matlab code( in .m file) directly with the simulink model( in real time), how to do that?
Hi, You can use a MATLAB function block in your Simulink model and call the m function there or you can put implement the funct...

4 years ago | 0

Answered
How to simulate bidirectional buck boost converter in order to charge and discharge the battery for electrical vehicles?
Hi, If this question is still relevant, please check the following examples in Simscape Electrical to start with: Bidirecti...

4 years ago | 0

Answered
Cannot run Simscape circuit due to Solver Configuration block error
Hi, this error is telling us that we are missing a connection to a domain reference, in this case an electrical reference. I can...

4 years ago | 3

| accepted

Answered
How can i take two outputs from a subsystem??
You can take a look at the following examples in Simscape: Lithium Battery Cell - One RC-Branch Equivalent Circuit and Lithium B...

6 years ago | 0

| accepted

Discussion


Simscape Electrical R2019b
As usual, we start the autumn with a new release. R2019b is live! <https://www.mathworks.com/help/physmod/sps/release-notes.html...

7 years ago | 3

Answered
3 phase power calc from Vabc and Iabc
You can use 'Power Measurement (Three-Phase)' from Simscape Electrical to compute the three-phase real and reactive power. You c...

7 years ago | 0

Load more