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
0answers
18 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
28 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
21 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
32 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
30 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
18 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
17 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
46 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
14 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
43 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
17 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
39 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
34 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
39 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
21 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
199 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
29 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
26 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
71 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
40 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
42 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
139 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
91 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
334 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
61 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
499 views

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

I programmed PID in MATLAB: ...
1
vote
0answers
56 views

Values got from programmed PID are different from ones simulated in Simulink

Please also read Update I created a PID simulation in Simulink: where the Step block is set with parameters: ...
1
vote
1answer
61 views

PWM Controller for known f(t)

Suppose I have some signal input which I know. The signal is 85 seconds long and its not something I can describe with equation but It looks as follows: Now, I have made a simple PWN controller that ...
0
votes
0answers
417 views

Using LTSPice to make Function Blocks for SIMULINK

I have a PLL that I want to model in Simulink using the control theory toolkit. I have the schematics for the PLL in LTSpice. Does anyone know of a way that I can integrate the spice model with my ...
-2
votes
1answer
120 views

using IC in Matlab [closed]

I dont understand how to simulate circuits which contains IC's(like lt680xx or IC 555 timer).is it even possible to use them in matlab simulink?If yes, how can we do it?
1
vote
1answer
88 views

Temperature dependence of the energy bandgap and Simulink way

I know the equation about the temperature change of band energy but Simulink must find another way to define it like below. dEg=-2.677 10^-4 I can't find a single reference about that equation. I ...
0
votes
1answer
98 views

“Hidden” variable in Simulink models

Some example models that are included in the Simulink library, there are some variables that their value is not visible. For instance, in the model power_PVarray_grid_det the sample time of the ...
11
votes
2answers
766 views

What is causing this long tail in the transient reponse?

I have a fifth order transfer function for which I designed a controller using pole-zero cancellation technique on a root locus. I am after <5% overshoot and <2s settling time. Currently, the ...
0
votes
1answer
68 views

Discrepancy between MATLAB and Simulink closed loop response?

I have a closed loop system which I am testing in MALTAB and Simulink, expecting the same output. MATLAB ...
0
votes
1answer
50 views

PID motor controller using simulink semantic errors when changing reference values

My aim is to design a pid - motor controller in simulink, and i also have to use h-bridges and PWM generator. The motor is a single phase dc-motor. And the aim is to control the speed. The reference ...
1
vote
0answers
128 views

Understanding MATLAB function blocks in Simulink

Before I ask my question, let me explain what I'm trying to do. I want to design a simple system in Simulink with the features shown below. When I say simple is that I don't need complex and large ...
2
votes
2answers
264 views

Why does tracking different plant states result in totally different observer estimates?

I am trying to design a Luenberger observer (or a full state feedback observer) such that with one sensor available I can estimate all the states. A good tutorial is shown here. My system is 4th ...
0
votes
2answers
549 views

How to simulate the exponential growth op-amp?

According to Wikipedia, the following is the exponential output operational amplifier. I would like to test this out in a simulated environment and see how this functions. For example give a sine ...