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
1answer
34 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
1answer
42 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 ...
0
votes
0answers
29 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
1answer
68 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 ...
1
vote
1answer
80 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 ...
0
votes
0answers
43 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:- ...
1
vote
0answers
89 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-...
0
votes
2answers
91 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 ...
-1
votes
1answer
112 views

Boost converter achieving over-unity efficiency

I'm trying to charge a 200V battery with a 100V battery with the help of a boost converter in Simulink, just as an experiment. This is my circuit: The 100V battery is V1 with a series resistance ...
0
votes
1answer
52 views

Correct block diagram of differential equation

I am studying modeling and simulation. I have to draw a block diagram (so that it gets simulated in Simulink) of the following differential equation $$ \frac{d^2 y}{dt^2}=-a_1\frac{d y}{dt}-a_2y+a_2u$$...
0
votes
1answer
33 views

Reason for frequency steps shown in Simulink FFT analysis tool

While using the FFT in Simulink tool, I have observed that if more number of cycles are selected then frequency steps in which harmonics percentage is shown is also divided accordingly. For example: ...
1
vote
1answer
38 views

Trouble emulating microcontroller on Simulink

I am trying to simulate a microcontroller controlled boost converter on Simulink. Because Simulink doesn't have a microcontroller, I wrote a MATLAB function that emulates one. In case you're ...
-2
votes
1answer
37 views

RLC/diode/MOSFET current measurements in simulink

I designed the following closed-loop boost-buck converter in simulink: Just for the sake of clarity, the power stage looks like this: I want to measure (and display on an oscilloscope) the current ...
0
votes
0answers
33 views

C Caller Block in Simulink does not show port specification?

so I am following the steps to create a C Call block function in Simulink as in the video linked here: C Caller Block - Integrate your C code into Simulink Models Here is the source code and header ...
0
votes
0answers
31 views

Simulink: PV System (Need help with the voltage regulator part)

I have been trying to model a PV system for a household. The scheme is as shown in the diagram. Its just a PV that connects to a boost converter then eventually an inverter. I have properly managed to ...
0
votes
2answers
103 views

How to write transfer function is s-plane of single bridge rectifier?

I am trying to write a transfer function of single phase rectifier so I can use in Matlab to look for phase margin and gain margin: here an example I took from Circuit-lab I could write the transfer ...
0
votes
0answers
50 views

How to model switching losses in transistors in Simulink

I'm trying to model the switching losses of an IGBT in Simulink. I've researched however I can't find any literature on how to actually just model the switching losses? I was potentially thinking ...
0
votes
0answers
62 views

Why doesn't the Potential Difference reading start from zero

While I was running a simulation of a center tapped transformer with and without a filter on Matlab I noticed something strange. The potential difference across the load doesn't start from zero and I ...
0
votes
1answer
209 views

Simulink - Zero Order Hold transfer function

I am trying to discretize the transfer function of my compensation. After modelling my system in continuous domain thanks to books of Christophe Basso and books of Erickson Robert W., Maksimovic ...
0
votes
0answers
15 views

Simulation of DFIG input voltage to stator

I'm currently looking into the modelling of a DFIG in simulink (however I have seen models in other programs as well) and I'm slightly confused as to why there is a 3-phase voltage input to the stator ...
0
votes
0answers
48 views

5G NR and OFDM modulation with IFFT

I'm studying 5G NR and to understand better how it works I'm trying to implement it in Simulink using the built-in OFDM block. From what I've understood, the numerology in 5G basically set the ...
0
votes
0answers
81 views

How to Represent Discrete-Time Non-Linear System on MATLAB/Simulink

I am doing a homework, which requires me to create a tank level controller on a PLC software. In order to design an effective controller, I wanted to create the difference equation of the system first,...
0
votes
0answers
37 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
47 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
40 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
26 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
123 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
31 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
19 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
69 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
77 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
867 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
95 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
127 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
125 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
254 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
111 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
61 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
62 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
107 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
94 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
43 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
110 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
41 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
27 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 ...
2
votes
0answers
92 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
174 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
580 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
105 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
67 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 ...