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
25 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. ...
0
votes
0answers
19 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 ...
0
votes
1answer
23 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 ...
0
votes
1answer
23 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 ...
0
votes
1answer
42 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 ...
0
votes
0answers
22 views

Can I tune the output voltage of H-Bridge built by Simscape Library?

In Simscape I built the H-Bridge converter using N-Channel Mosfet. The gates are driven by a PWM signal that I mounted. I used PS-Simulink Converter to adapt Simulink and Simscape. The signals that go ...
1
vote
0answers
16 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 ...
0
votes
1answer
61 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 ...
0
votes
1answer
48 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 ...
0
votes
1answer
186 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 ...
0
votes
0answers
66 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 ...
0
votes
0answers
108 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
78 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
102 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
47 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
43 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
45 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
63 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
56 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
29 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
54 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
38 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
24 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
13 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
64 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
99 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
236 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
54 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
51 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
44 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
53 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
46 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
51 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 ...
2
votes
0answers
51 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
108 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
36 views

SCC for Synchronous Generator Using Matlab

What should I put in ''Three-Phase Programmable Voltage Source'' block ?
1
vote
1answer
43 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
2answers
139 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
73 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
1answer
48 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
45 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
54 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
3answers
174 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
1k 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
56 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
27 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
109 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
88 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
190 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
40 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 ...