Questions tagged [simulink]

Simulink® is a block diagram environment for multidomain simulation and Model-Based Design. It supports simulation, automatic code generation, and continuous test and verification of embedded systems.

Filter by
Sorted by
Tagged with
1 vote
0 answers
36 views

How to generate PWM from based on an AC signal?

I'm working on a project to improve the efficiency of the resonant wireless charging system. For one of the steps to do this, I need to find the phase shift between current and voltage and of \$I_{\...
user avatar
-1 votes
0 answers
24 views

How to find frequency of a signal in matlab simulink

I have to find the frequency of the output signal from the inverter at AC+ port line as shown in the figure, But there is no direct simulink tool to measure the frequency directly.
user avatar
-1 votes
1 answer
48 views

Find the differential equation of a control system via its block diagram

I have this block diagram: I need to find the differential equation that represents the behavior of the control system, but I don't know what to do with the inner and outer feedback. I tried to ...
user avatar
0 votes
1 answer
42 views

How would a modulated and demodulated signal differ in FM and PM? Simulink Simulation

I am trying to observe the differences of phase and frequency modulation. On the figure below, the left scope shows a frequency modulation and demodulation whereas the right scope shows a phase ...
user avatar
  • 173
0 votes
1 answer
87 views

How to measure the voltage of battery while charging?

I want to design a battery charger. I need know the voltage of battery to calculate the state of charge (SOC) of it, but if I just put a voltage measure model in parallel, it will measure the charger ...
user avatar
  • 9
0 votes
2 answers
50 views

Can anyone explain the role of some of these blocks in this PV inverter system?

I get the role of following blocks: 1)MPPT controller (is a matlab function code of Perturb and observe) 2)boost converter 3)H-bridge inverter and its PI controller. I don't get the role and working ...
user avatar
0 votes
0 answers
39 views

How to calculate the maximum load that a standalone PV system can handle?

I have a 6820W pv panel, a boost converter, a H-bridge inverter, a 48V 540Ah LI-ion battery, a 100ohm dc and a 100ohm ac load in my system. My question is what is the maximum load that this system can ...
user avatar
1 vote
1 answer
97 views

LTspice giving weird results in simulation of phase shifted full bridge converter

I am trying to simulate a phase shifted full bridge converter in LTspice. I had already simulated it in MATLAB Simulink and obtained the desired results, but I am redoing it in LTspice to include the ...
user avatar
0 votes
1 answer
58 views

Need help with simulation of three-phase active rectifier on LTSPICE

I have already successfully simulated a three-phase rectifier on simulink. However, I wish to implement the same on LTspice because I would have liked to see the effect of using non-ideal components. ...
user avatar
1 vote
4 answers
981 views

How to design EMI filter if you don't have the actual physical circuit ready?

I have a designed a battery charger in simulink and for the sake of completeness and as a learning experience, I would like to explore EMI filtering and design one for it (as a simulation model). I ...
user avatar
1 vote
1 answer
103 views

Why is my battery showing a huge negative inrush current in my designed charger model?

I have a three-phase charger model on simulink as shown below, with a three-phase active front end converter followed by a phase-shifted full bridge DC/DC converter. The circuit is working pretty ...
user avatar
1 vote
1 answer
35 views

Signal Dimensions in Simulink

I'm using R2022a, in Simulink I can not find the Display tab to access Signals & Ports>Signal Dimensions. Could someone point me in the right direction please?. Also, in the figure below the ...
user avatar
  • 173
-1 votes
1 answer
48 views

Options for current sensing for a 230V , 100 W boost PFC circuit?

So I have the following boost PFC circuit: I wish to sense the inductor current. My first thought was using shunt with instrumentation amplifiers, but the issue is total voltage across the inductor ...
user avatar
0 votes
1 answer
87 views

Boost PFC converter stepping up voltage but unable to shape the input current

So, I have designed the following boost PFC circuit in simulink: This is the DC output voltage: But this is the input current: I am trying to tune the PI control but nothing works out. The PI ...
user avatar
0 votes
0 answers
57 views

How can I accurately and quickly simulate this 280Ah battery charger circuit with a real-time charging time of over 2 hour?

So I am designing an on-board charger of rating 10kW in MATLAB simulink for an electric vehicle to charge a 72V, 280Ah battery with a maximum charging current of 125A. As the calculations work out, it ...
user avatar
0 votes
2 answers
107 views

Is it appropriate to model a DC/DC converter as a variable resistance if I have input voltage and current datapoints?

So I am designing a circuit in MATLAB simulink which is basically a rectifier followed by a DC/DC converter. Both simulations are working perfectly individually. However, when I attach the DC/DC ...
user avatar
0 votes
0 answers
42 views

Simulating a wind turbine in Simulink

I am trying to simulate a wind turbine in Simulink. The given input data is average wind speed for each hour for one year. I have also connected it to the grid and added a capacitor bank (this has ...
user avatar
5 votes
1 answer
229 views

Need help with simulation of three-phase rectifier with hysteresis controller

I am attempting to design a closed loop three-phase rectifier with hysteresis control using MATLAB simulink. The outer loop compares output DC voltage with reference voltage, given to a PI controller ...
user avatar
0 votes
1 answer
36 views

Rectangular pulse coming as trapezoid in Simulink

I have implemented a mechanism where I am feeding a rectangular pulse train to a multiport switch which should give a switching sequence of rectangular pulses. However, I am getting the profile of the ...
user avatar
  • 1
0 votes
1 answer
76 views

How to find BLDC motor power and torque rating with torque constants and other given parameters

I am currently working on simulating a solar pv fed bldc motor in simulink software. I have the datasheet values of bldc motor from a iet journal as Number of poles, P = 6; rated speed, Nrated = 3000 ...
user avatar
0 votes
1 answer
59 views

How to analyze first-order transient circuits using Simulink?

I have been trying to design a first-order circuit with a capacitor but, I could't achieve to initaliaze the steady-state condition. I mean I was not able to close the switch at t = 0. Since, I am ...
user avatar
  • 5
0 votes
0 answers
50 views

Controller anti-windup test cases

I am trying to implement my own (simplified) PI block for digital controller and would like to include anti-windup function. A basic structure for PID controller with back calculation is given below: ...
user avatar
1 vote
1 answer
180 views

Circuit to convert a pulse signal to square wave

How can I convert a pulse signal into a square wave. I have a pulse signal created using a Function Signal Generator, ZK-PP2K Pulse Frequency Generator 8A Driver Module LCD Pulse Frequency Cycle ...
user avatar
  • 173
1 vote
1 answer
96 views

Modelling a real-life diode

I have a final year project for electrical engineering. My part of the project is to design a rectifier that receives an AC voltage from an antenna and provides a power management unit with rectified ...
user avatar
  • 21
0 votes
1 answer
206 views

Implementing quadratic linear regulator (lqr) in simulink

I am working with a non-linear model of a hot-air balloon. I have linearized the system, found the operating point, the state space matrices and I know these are correct:- ...
user avatar
  • 2,996
1 vote
0 answers
141 views

Op-amp with AC input

I've just started learning about op-amps and something confused me in one of my lectures (apologies for the low quality, it's a screenshot): The output voltage is going into a rotational electro-...
user avatar
0 votes
2 answers
159 views

Digital logic/sequential circuit to produce one pulse for every 5 clock pulses

I'm working on a problem where I'm trying to design a digital logic circuit (sequential circuit?) to produce output Y given input A: So the goal is to produce one pulse for every 5 input pulses. What ...
user avatar
  • 3
-1 votes
1 answer
136 views

Boost converter achieving over-unity efficiency

I'm trying to charge a 200V battery with a 100V battery with the help of a boost converter in Simulink, just as an experiment. This is my circuit: The 100V battery is V1 with a series resistance ...
user avatar
0 votes
1 answer
121 views

Correct block diagram of differential equation

I am studying modeling and simulation. I have to draw a block diagram (so that it gets simulated in Simulink) of the following differential equation $$ \frac{d^2 y}{dt^2}=-a_1\frac{d y}{dt}-a_2y+a_2u$$...
user avatar
0 votes
1 answer
101 views

Reason for frequency steps shown in Simulink FFT analysis tool

While using the FFT in Simulink tool, I have observed that if more number of cycles are selected then frequency steps in which harmonics percentage is shown is also divided accordingly. For example: ...
user avatar
1 vote
1 answer
50 views

Trouble emulating microcontroller on Simulink

I am trying to simulate a microcontroller controlled boost converter on Simulink. Because Simulink doesn't have a microcontroller, I wrote a MATLAB function that emulates one. In case you're ...
user avatar
-2 votes
1 answer
78 views

RLC/diode/MOSFET current measurements in simulink

I designed the following closed-loop boost-buck converter in simulink: Just for the sake of clarity, the power stage looks like this: I want to measure (and display on an oscilloscope) the current ...
user avatar
0 votes
0 answers
61 views

C Caller Block in Simulink does not show port specification?

so I am following the steps to create a C Call block function in Simulink as in the video linked here: C Caller Block - Integrate your C code into Simulink Models Here is the source code and header ...
user avatar
  • 301
0 votes
0 answers
40 views

Simulink: PV System (Need help with the voltage regulator part)

I have been trying to model a PV system for a household. The scheme is as shown in the diagram. Its just a PV that connects to a boost converter then eventually an inverter. I have properly managed to ...
user avatar
0 votes
2 answers
113 views

How to write transfer function is s-plane of single bridge rectifier?

I am trying to write a transfer function of single phase rectifier so I can use in Matlab to look for phase margin and gain margin: here an example I took from Circuit-lab I could write the transfer ...
user avatar
  • 301
0 votes
0 answers
91 views

How to model switching losses in transistors in Simulink

I'm trying to model the switching losses of an IGBT in Simulink. I've researched however I can't find any literature on how to actually just model the switching losses? I was potentially thinking ...
user avatar
0 votes
0 answers
64 views

Why doesn't the Potential Difference reading start from zero

While I was running a simulation of a center tapped transformer with and without a filter on Matlab I noticed something strange. The potential difference across the load doesn't start from zero and I ...
user avatar
0 votes
1 answer
393 views

Simulink - Zero Order Hold transfer function

I am trying to discretize the transfer function of my compensation. After modelling my system in continuous domain thanks to books of Christophe Basso and books of Erickson Robert W., Maksimovic ...
user avatar
  • 1,452
0 votes
0 answers
19 views

Simulation of DFIG input voltage to stator

I'm currently looking into the modelling of a DFIG in simulink (however I have seen models in other programs as well) and I'm slightly confused as to why there is a 3-phase voltage input to the stator ...
user avatar
0 votes
0 answers
126 views

How to Represent Discrete-Time Non-Linear System on MATLAB/Simulink

I am doing a homework, which requires me to create a tank level controller on a PLC software. In order to design an effective controller, I wanted to create the difference equation of the system first,...
user avatar
  • 191
0 votes
0 answers
64 views

Why the frequency spectrum of my OFDM output signal has a series of spike?

I'm trying to understand OFDM modulation using Matlab Simulink and I've built the following system I sent to the input of the OFDM block a frame of 15 samples that comes from the 16-QAM modulator. ...
user avatar
  • 211
0 votes
0 answers
74 views

How to Design BMS in simulink?

I have designed a battery pack of li-ion batteries. At the initial stage I have given 0 at both constant blocks. This indicates there is no charging or discharging In the second fig I have applied ...
user avatar
0 votes
1 answer
121 views

MATLAB Simscape: modeling variable load with varying DC voltage

I have a model for a solar array and a battery in MATLAB Simulink (simscape). and I would like to model a load given the power consumption over time. The load is connected to the battery the voltage ...
user avatar
0 votes
1 answer
30 views

error in dimension for adder in negative feedback loop

im a universiity student i was trying to model this state space with simulink i tried to use the state block but got the same error i think i need to use mux i already checked the dimensions for A B C ...
user avatar
0 votes
1 answer
241 views

Simulink scope changes value depending on simulation time

I am making a co-simulation in Simulink for a circuit that I made in ORCAD, and I saw this problem that appears: If I put the final stop time for simulation 10s the signal looks like in first picture ...
user avatar
  • 21
1 vote
0 answers
22 views

How to use SPWM with reference voltage waveforms

I'm doing a simulation for an IM drive in MATLAB/Simulink and Plecs(Blockset). My model is a closed loop system and I generate the reference voltage to be applied across the motor. Now I need to ...
user avatar
0 votes
1 answer
82 views

Why am I getting incorrect results via DC test performed in Matlab/Simulink?

I am performing DC test in Simulink to find the stator resistance. The three phase SCIM parameters are taken as: The setup in the Simulink is shown below: The %error is too much (25%). Can anyone ...
user avatar
0 votes
1 answer
94 views

Can I Simulate a SMPS Compensator on Matlab/Simulink

I've designed a type 3 compensator for a full bridge dc-dc converter, I just want to be sure about its stability and want to check its bode plots, I have a open loop model, I can apply pi control on ...
user avatar
  • 131
0 votes
1 answer
2k views

Single Value range is not allowed in packed dimension

I have been reading about packed and unpacked dimensions in systemverilog from https://www.chipverify.com/systemverilog/systemverilog-arrays, in the following code I just want to use a memory array ...
user avatar
  • 59
0 votes
0 answers
123 views

Linearization of Simulink nonlinear state space models with Linearize

States of the system in Simulink Conttrol Design are identified at the output of the integrator blocks accross the system. If a model is already developed in a ...
user avatar
  • 41