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
0 votes
0 answers
24 views

Boost converter - Different value for change in duty cycle causing oscillations and sub-optimal performance

I'm trying to simulate an MPPT system in Simulink. The algorithm is working fine in hardware, but when I'm simulating on Simulink I have an issue. When I change the value of delta duty_cycle (i.e. the ...
1 vote
0 answers
21 views

Analog Circuit Modelling in Simscape (Simulink) doesn't work (No Input sighted)

I tried rebuilding the analog circuit for the Lorenz Attractor in Simulink using Simscape toolbox. Luckily they have also an analog multiplier circuit built-in and I re-wired everything just as the ...
0 votes
0 answers
45 views

Why is the filter output not in sin form?

The lowpass filters I created with the Matlab fda tool are different from the sinus form in the simulation. What could be the reason for this?
  • 1
0 votes
1 answer
83 views

Buck converter confusing output voltage waveform

I've constructed a simple DC-DC buck converter circuit in Simulink with ideal components. I'm getting a weird output voltage waveform. Although the average output voltage matches my calculations, the ...
  • 21
1 vote
1 answer
39 views

Diagram of a simple charge/discharge model of a battery powered by a solar panel with a DC motor load in Simulink

I want to simulate in Simulink a simple electrical system of the following nature: there is a battery powered by a solar panel and a DC motor load. For example, during the day, the solar panel ...
  • 117
0 votes
0 answers
59 views

Why is the voltage rising when I expect a voltage drop in my model?

matlab model In the model, I have four blocks each with three homes. I am feeding the homes with a three phase voltage source. On the way to homes there are resistors and inductors so I expect ...
0 votes
0 answers
37 views

How do I model switches in Matlab/Simulink?

I am trying to model different types of switches in Matlab/Simulink. There is this type of switch that I can't find a name for or design. I am not an expert in digital logic, I only have the basics ...
  • 101
1 vote
1 answer
52 views

How is the transfer function block in simulink labelled as linear ? especially for the cases where variable 's' has power greater than 1

https://www.mathworks.com/help/simulink/slref/transferfcn.html Above weblink gives description about the transfer function block in simulink. I am confused why it is written in the description at top ...
  • 277
1 vote
1 answer
72 views

How to get started with phase locked loops?

I was given a project to simulate a phase locked loop system. So far, I have only understood the very basic idea of how it works (not the maths behind it.) I want to play around with testing each ...
  • 113
0 votes
0 answers
40 views

How can I add 2nd input to my transfer function in simulink block diagram of NI HVAC system?

I am trying to model the HVAC system in simulink. My simulink model is shown in attached snap. I want to implement the loop shown in 2nd snap(which is the block diagram extracted from manual of HVAC) ...
  • 869
0 votes
0 answers
56 views

Modelling two real capacitors in parallel

I am currently trying to model parts of an electronic system in Simulink using standard (discrete) blocks. I'd like to model two capacitors connected in parallel incl. their series resistances (ESR). ...
0 votes
2 answers
83 views

Do I need a buck or boost converter to charge a lithuim battery with solar and wind energy?

I am doing a school project in Matlab Simulink to design a battery charger. I need to use solar and wind energy to charge the batteries. Since both solar and wind are not always constant voltage and ...
  • 1
1 vote
1 answer
69 views

Why am I not getting proper output response in Simulink?

I am trying to implement PID control loop for flight control of Quanser VTOL(vertical take off and Landing system) in Simulink. VTOL Information book is placed at link below: https://www.mediafire.com/...
  • 869
1 vote
1 answer
44 views

How to change a pure (ideal) differentiator system into a practical one using MATLAB/Simulink?

A pure/ideal integrator has transfer function H(s)= s. If we try to get its step response in MATLAB we get the error "Cannot simulate the time response of models with more zeros than poles"....
  • 869
0 votes
0 answers
24 views

Unit voltage template method for the control of D-STATCOM

I have got this model of the D-STATCOM which I am trying to implement from this paper: Analysis of shunt active powerfilter with unit template method I have created a model as show below: The ...
  • 1
1 vote
2 answers
161 views

How to find natural frequency from graph/plot of MATLAB Simulink?

I have compared my transfer function with standard characteristic equation of a 2nd order system and I found out that my natural frequency is 3 radians and damping ratio (zeta) is 0.5 but how can I ...
  • 869
1 vote
1 answer
51 views

Confusion regarding proportional control?

https://www.mediafire.com/file/30bw1s5uw8fexu6/VTOL+help.pdf/file From above link, I was reading a manual about QNET VTOL (Vertical Take off and Landing) trainer and I came across a the task/question ...
  • 869
0 votes
1 answer
54 views

Simulate Schmitt trigger on Simulink

I'm trying to make the simplest circuit to see the Schmitt trigger behaviour on Simulink. I have the following circuit with the Schmitt trigger having the following options : Low level input voltage : ...
  • 101
2 votes
2 answers
99 views

Why is a step signal frequently used as a test signal?

Why do we use a step signal most frequently as a test signal in signal processing and control systems? What is the reason for not (frequently) using other signals? Especially in MATLAB and Simulink ...
  • 869
5 votes
1 answer
191 views

Is it possible to simulate entire circuit designs before physically building the circuit?

I have spent a lot of time the past 3-4 months creating / improving my first circuit design which is a bldc motor driver circuit. I finally have a prototype which I think will work: Before I ...
  • 710
0 votes
1 answer
68 views

PI speed control of DC motor using a boost chopper simulation in Simscape [closed]

My project is to regulate the speed of a DC motor (fed by a chopper boost) with a PI controller, after calculating the different parameters of the chopper which are as follows: DC motor parameters: 5 ...
0 votes
0 answers
159 views

How to measure rising and falling edge of square wave using c-code block

I have a problem in understanding how to incorporate a c-code block in order to measure the rising and falling edges of a square wave signal in Simulink. I am using a signal generator to generate a ...
0 votes
1 answer
133 views

How to control position and speed of a motor in Simulink?

I am trying to make a system that can launch a ball kind of like how a catapult would do. I'm going to be using an Arduino and an H-bridge with PWM but I'm not sure how I can control both speed and ...
0 votes
0 answers
50 views

Starting current of DC motor Simscape model does not match the datasheet of the motor

I have the datasheet of a brushed DC motor and I am trying to model it in MATLAB using Simscape blocks. I entered all the required parameters in the DC motor block but when I run the simulation the ...
1 vote
0 answers
45 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_{\...
-1 votes
1 answer
83 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 ...
0 votes
1 answer
107 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 ...
  • 173
0 votes
1 answer
202 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 ...
  • 9
0 votes
2 answers
57 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 ...
0 votes
0 answers
49 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 ...
1 vote
1 answer
339 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 ...
0 votes
1 answer
118 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. ...
1 vote
4 answers
1k 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 ...
1 vote
1 answer
155 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 ...
1 vote
1 answer
175 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 ...
  • 173
-1 votes
1 answer
86 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 ...
0 votes
1 answer
120 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 ...
0 votes
0 answers
82 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 ...
0 votes
2 answers
133 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 ...
0 votes
0 answers
59 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 ...
5 votes
1 answer
395 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 ...
0 votes
1 answer
137 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 ...
  • 1
0 votes
1 answer
205 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 ...
0 votes
1 answer
116 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 ...
  • 5
0 votes
0 answers
90 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: ...
1 vote
1 answer
435 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 ...
  • 173
1 vote
1 answer
111 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 ...
  • 21
0 votes
1 answer
472 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:- ...
  • 3,410
1 vote
0 answers
350 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
449 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 ...
  • 3

1
2 3 4 5