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
1answer
17 views

How do I combine outputs in Simulink by changing a specific parameter?

I am studying a Cruise control system, and I want to change the coefficient of rolling friction and put them together in one graph keeping the remaining parameters the same. How do I store all the ...
1
vote
0answers
11 views

Process time-independent data in Simulink for VHDL synthesis

I am new to the topic but want to implement some simple algorithms processing metric data in simulink and later generate some vhdl from it. I am using the Matlab/Simulink environment with the Intel ...
2
votes
0answers
31 views

Simulation of field oriented control of three phase induction motor

I have been developing a simulation of the field oriented control algorithm of the three phase squirrel cage induction motor in the Xcos (equivalent of the Simulink). The simulation consists of ...
0
votes
0answers
40 views

How to set solver for control loop simulation?

I have been developing a simulation of the field oriented control of the three phase squirrel cage induction motor (control is oriented by the rotor flux). I have been using the Xcos which is an ...
-8
votes
0answers
27 views

Buck Converter design [closed]

Design a buck converter to produce an output voltage of 18 V across a 10-Ω load resistor. The output voltage ripple must not exceed 0.5 percent. The dc supply is 48 V. Design for Continuous inductor ...
0
votes
1answer
44 views

How to prevent algebraic loop in the control loop simulation?

I have been developing a simulation of the field oriented control of the three phase induction motor. The simulation is developed in the Scilab/Xcos (v5.5.2) which is a free of charge Matlab/Simulink ...
0
votes
0answers
17 views

SIMULINK :Frequency Multiplier

I'm working on implementing Armstrong Modulator . I successfully implement the narrow band block but I'm struggling into finding a solution to multiply the frequency of my modulated signal . Any ideas ...
-2
votes
0answers
25 views

Stm mat target external mode demo example(nucleo f446ze) not working

I am using STM32 Nucleo F446ZE LQFP-144, MATLAB 2020a, STMcubeMX 5.6.0, Keil v5.31.0.0. STM MAT TARGET rev 2.5. I am using ...
3
votes
1answer
33 views

SIMULINK: The spectrum of the modulated signal remains unchanged despite modification of the modulation index

I try to implement a frequency modulator. From what I know, the more I vary the modulation index (which is set by the gain block here,) the more the spectral lines should increase in number. When I ...
0
votes
0answers
18 views

Linearization of nonlinear plant with system identification in Matlab

I hope this question fits in here and there is someone who can maybe help me. I am new to control theory and I have a very complex Simulink model which is nonlinear. I want to have a linear ...
1
vote
1answer
46 views

how to implement while loop with time condition in matlab?

I knew how to set a a while loop in Mikrocontroller, but when I tried to Implement it in matlab /simulink, my computer gets stuck and never get out of the while loop and does not do anything. here is ...
0
votes
0answers
40 views

Serial Communications delay

Hopefully this is more of an electrical engineering question than a MATLAB question, but I don't understand a system response I'm getting. I recently got 2 Arduino Due's and configured 1 in MATLAB ...
0
votes
0answers
21 views

Calculation of Initial Charge Deficit and Initial State of Charge

I am working on Simulation Model based Lithium-Ion Battery Development with MATLAB/Simulink. For the battery model, I need to define Intial Charge Deficit , which is a phenomenon which every battery ...
0
votes
0answers
15 views

Modelling internal fault in a transformer

I am doing an analysis of faults in transformers and i need to model internal faults in a transformer. Please do advise on how to model internal fault in Simulink. Thanks in advance
2
votes
0answers
30 views

Convert complex number to phase shift in simulink

I am currently modelling some dynamic phenomena, combining pure simulink blocks and simscape blocks. I have measurements (real-valued) on which I perform computations with complex-valued matrices, ...
0
votes
1answer
22 views

why plot of ''To Workspace'' of matlab does not fit the scope of simulink?

I am simulating a complete system for control loop. since I need the data to be saved on matlab, I wrote a small code that saves the data in matlab and I could plot. my system has a sample time of ...
1
vote
1answer
30 views

SCC for Synchronous Generator Using Matlab

What should I put in ''Three-Phase Programmable Voltage Source'' block ?
1
vote
1answer
36 views

Energization angle of a transformer

I am trying to understand transformer behavior for a project that i am currently doing. I am trying to simulate characteristics of transformer using simulink models. In the various papers that i have ...
1
vote
0answers
33 views

simulink transform integer to pulse (seen by scope)

I have a custom M function block on simulink as follows with input (a) and output (c). correspond to input (a) output (c) maybe zero or else. I want to transform this output integer to pulse (can be ...
0
votes
0answers
21 views

Error when Implementing field oriented control of a brushless DC motor

I am trying to simulate a bldc motor control system (controlling current) in Matlab/Simulink: So far, I have built the following blocks (already tested individually, and they have already worked well)...
0
votes
0answers
21 views

Problem with PMSM motor model in Simulink

Good afternoon, I have developed a Vector Control for a PMSM motor in Simulink using Simscape Electrical but my motor is not spinning. I have tried applying various speed values but nothing happens. ...
1
vote
2answers
59 views

How to find the cutoff frequency using Simulink (from the scope)?

R=1000 ohm C=0.1uF I need to find the cutoff frequency from the scope and to show it matches the theory \$f= \frac{1}{2pi*RC}\$ In this case it's 1591Hz. How do I measure it?
0
votes
0answers
6 views

How to find and change the label of the Truth Table present in Simulink through command window in Matlab?

I want to change the function of the truth table present in Simulink through the command window of Matlab. I am able to do it but, when I try to run the simulation it gives an error of 'tt_blk_kernel'....
0
votes
0answers
15 views

Why is the torque non-constant Torque issue in my FOC algorithm (Simulink)?

I am trying to develop an FOC algorithm in Simulink (see image attached) but I am having extrange results in my simulation. My torque is not constant, when it should, but varying periodically (see ...
0
votes
1answer
52 views

Three Phase Rectifier Question (student)

I am new to this forum. I am an Electrical Engineering student working on a project. I am using Matlab Simulink/Simscape to perform simulations. Currently, I am working on a three-phase rectifier. (...
0
votes
0answers
12 views

How do I model a building as a load of a microgrid using Simscape?

I have to build a microgrid in Matlab, and I think the best approch is using Simscape, as part of a bigger project. The problem is that I don't know much of electrical engineering since I study ...
0
votes
0answers
18 views

Determining synchronous impedance by Simulation of an Alternator Test using MATLAB/Simulink

I would like to know if there is a way to simulate an alternator using MATLAB/Simulink to obtain the synchronous impedance of any alternator by using Open-Circuit Test and Short-Circuit test. Is this ...
0
votes
1answer
42 views

How do I design a microgrid using Simulink?

I have to do a project in which I have to model a microgrid which is controlled by using reinforcement learning techniques. In doing so I have a problem, because I study control systems and I don't ...
0
votes
0answers
37 views

Differences between Adaptive Extended Kalman Filter and Extended Kalman Filter

I am developing a Simulink battery model to estimate state of health of a battery using MATLAB/Simulink. I want to use a Extended Kalman Filter for the model, but in one article I read that a Adaptive ...
0
votes
0answers
36 views

Nano mechanical transistor Colpitts oscillator with logic gate

I am a university student and I am working on my master thesis. I have worked on nano mechanical transistor using Colpitts oscillator with the logic AND gate. I have one question: I tried the ...
-1
votes
1answer
42 views

Matlab RLC simulink and code help

In the circuit in the figure, the switch closes at time t = 0. What is the change of capacitor voltage and coil current in the range of 0-15 seconds? Show the solution in M. file and Simulink. Can ...
0
votes
0answers
26 views

SOC estimation using UKF in MATLAB/Simulink

I am building a battery model to estimate State of Charge using Unscented Kalman Filter, my doubt is how to initialize Em, R and C values to enter in lookup tables also values for the vectors Capacity,...
0
votes
3answers
122 views

How to design an inductor which consists of four separate windings in the same core?

I need to design an inductor such that there will be four separate windings at the input side (each input is coming from a different DC-DC converter) then these four windings are combined at the ...
0
votes
1answer
355 views

How to find phase shift(angle) between two signals in simulink?

So I'm doing a delta wye transformer in simulink and phase shift between these two signals should be 30 degrees, but how to show that, or calculate it? And how to find angle of each signal?
0
votes
0answers
30 views

Help modifying solar cell to include water cooling on simulink?

Hi, for my honours project at university i am basically doing an analysis of how water cooling a solar panel improves efficiency by decreasing the temperature of a solar cell. Part of my thesis ...
0
votes
0answers
34 views

control Linear analysis error due to RMS(IIR) filter?

my Objectif is to get a frequency response of the open loop system of plant which will allow me to design the controller transfer function. after including the RMS filter, the Analysis tool of ...
0
votes
0answers
24 views

PI tuning from simulink scope?

I would like to use the method of Zigler-Nichols method for open loop. I got the step reponse from Simulink scope but How can I calculate the L and A from the scope?
0
votes
1answer
79 views

Why is my LC filter Bode flattening out to 20dB/dec in my Simscape simulation?

I just made an LC filter Matlab Simulink simulation and I don’t know why the Bode diagram is flattening out. After the resonance it falls steeply, but after that it sets at 20dB/decade. Shouldn't it ...
0
votes
0answers
7 views

What is a Simulink Embedded Function Model?

I can't seem to find a definition of what this is. Does this mean a simulink model that only uses simulink blocks? Does this mean that matlab code is written to define the I/O of a block?
0
votes
1answer
50 views

simple matlab function (simulink) with if?

have written the very basic Matlab function on Simulink and would like why I am getting this error: ...
0
votes
0answers
64 views

how to overcome the slow pace of my simulink model?

I have run the solver profiler to debug where my simulink model stuck and take very long time to simulate. I found out it is the diode model that I model as following: It runs fast on its own. ...
0
votes
1answer
34 views

Testing PWM signal

So im kind of new with using PWM. I have made a simple comperator using Simulink in order to create PWM signal. Now, I had like to pass this PWM signal through "something" which I dont know what in ...
0
votes
1answer
52 views

Simulation of the Micro-kinetic generator

I am simulating the block diagram of the Autoquartz system during unwinding in Simulink. I want to get the current of microgenerator (Ibus), but I get an oscillating pattern, which you can see here ....
0
votes
1answer
165 views

Difference between parallel and standard form pid controller in simulink?

What is the difference between parallel and standard form of pid controller that is provided by pidtool in Matlab simulink? In terms of block diagram?
0
votes
1answer
99 views

Sawtooth to Straight line in Simulink

There is a component in LabVIEW called as "Inverse Modulus". It is used to eliminate the discontinuous jump that would occur when the DAC encoder of the hardware reaches the limits of this range. ...
0
votes
2answers
386 views

Pulse generator in Simulink Matlab

I want to generate a pulse in Matlab Simulink fixed point solver. The step size in the Simulink fixed solver is 1e-06, but I need a pulse width of 2e-08. The figure shows the clear requirement of ...
3
votes
4answers
3k views

Truth table with logical gates for a traffic light

I want to create this truth table: So I tried this but I was not able to get the last row, which is: While a =1 and b =1 ,yellow = 1 red = 0 and green = 0. This is my design for it, but I could ...
0
votes
0answers
31 views

Identification of Simulink symbol

This model has the symbol, shown below. I cannot locate it in the Simulink tools. Can someone help me to identify this part?
0
votes
0answers
62 views

Simulation/modelling of a RFID system (reader, antenna, tag)

The input parameters for the simulations are: Area of environment where the RFID system will be placed i.e. in a rectangular space. Number of antennas. Number of passive tags within the environment ...
0
votes
1answer
713 views

How to implement low pass filter in the differential part of PID in time domain

I programmed PID in MATLAB: ...