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
76 views

Co-Simulation PSpice - Matlab

I simulated in Orcad an inverter, and I wanted that to Co-Simulate it in Matlab. The problem is that I get only '0' value on Simulink scope. The circuit in Orcad is (see first picture.) and the ...
0
votes
0answers
43 views

Strange oscillations in Simulink for a buck-boost converter connected to a solar panel

I am building a model of a solar power system. In it, I connect a string of solar cells to a buck-boost converter. I use Simulink and Simscape Electrical to perform simulations. I am encountering an ...
0
votes
0answers
25 views

Using wrapTo2pi in simulink

Is there a way to use wrapTo2pi in simulink without getting error 'Function 'wrapTo2Pi' not supported for code generation.' Thanks.
0
votes
0answers
19 views

matrix multiply showing error in dimensions when i am using it for fm demodulation in simulink

I am doing FM modulation and demodulation of audio signal. i have successfully implemented the fm modulation but as i give the output of FM modulation to the matrix display at receiver end, it is ...
0
votes
2answers
38 views

Calculating the dc motor parameters from motor specifications

I am struggling with series dc motor modelling to study the effect of feedback control system on its performance, is there any method to calculate the parameters i.e. terminal inductance and ...
1
vote
0answers
42 views

What is wrong with my Simulink model of a first order Delta Sigma Modulator?

I'm trying to design a Delta-Sigma Modulator for frequency synthesizer applications and am (just right now) figuring out how to properly configure a first order DSM in Simulink. I've made a few small ...
0
votes
1answer
46 views

How can I see the magnitude and frequency of a signal (DFT) in PLECS?

I am trying to obtain the Fourier transform of a signal by using the DFT of PLECS but I got some weird results. Here is a very simple sinewave generator and the DFT block: DFT_plecs_1 Here are the ...
0
votes
0answers
35 views

Goto and From in Simulink circuit

I'm trying to simulate a circuit in Simulink but it's starting to get a bit messy due to the size of the circuit. I want to know if there is a way to set labels that I can input a signal into and ...
0
votes
0answers
22 views

Undefined function 'etapar' for input arguments of type 'cell'

Hello everyone i'm working on a project of pwm command using simulink,but i'm stuck in this error "Undefined function 'etapar' for input arguments of type 'cell'" any solutions please??
0
votes
0answers
28 views

Adding delay to pulsed signal in matlab code with PWM block

How can I generate a pulsed (rectangular) signal such that, total period = 500ms (simulation time); clock frequency = 10kHz; pulse should occur every 20 ms. Duration of the pulse is the clock period ...
1
vote
1answer
37 views

Controller design for sinuisoidal reference signal

I just wanted to know what people thoughts were on a controller designed for varying the height of a magnetically levitated ball with a sinusoidal reference signal. I have completely modelled the ...
1
vote
1answer
20 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
48 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
60 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 ...
0
votes
1answer
94 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
30 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 ...
3
votes
1answer
44 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
26 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
50 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
45 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
38 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
16 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
35 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
64 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
34 views

SCC for Synchronous Generator Using Matlab

What should I put in ''Three-Phase Programmable Voltage Source'' block ?
1
vote
1answer
40 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
35 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
32 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
107 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
1answer
61 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
20 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
46 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
40 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
43 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
48 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
45 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
124 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
701 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
50 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
26 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
93 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
1answer
63 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
116 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
35 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
53 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
278 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
111 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
458 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
6k 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 ...