Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
24 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 ...
7
votes
0answers
196 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, ...
0
votes
0answers
24 views

How does using PWM generator to control inverter work in Simulink?

I am trying to model a PV system connected to the grid and use PWM generator to synchronize the inverter output with the voltage condition on Grid. I figure I need to use Three phase PWM Generator ...
1
vote
1answer
53 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
27 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
16 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 ...
3
votes
2answers
240 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
83 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 ...
0
votes
1answer
40 views

Simulate physical FM Transmitter circuit on Matlab Simulink

I am new to matlab. I was working on a simple modulator that I have to simulate. I've faced a problem with connecting the output frequency from the resonance circuit to the scope, A red dotted line ...
0
votes
0answers
9 views

How to resolve error in sending user data to USRP's SDRu transmitter function?

I'm trying to send user defined data over USRP board using SDRu Simulink blocks available. Following is the block diagram of my model: Basically right now I'm trying to use the USRP board as a ...
0
votes
1answer
41 views

Simulating a non-linear system in Simulink

I have a set of non-linear equations, which I would like to model in Simulink in order to compare to their linear counterpart. Here is the block diagram of my setup. The state-space block represents ...
1
vote
2answers
47 views

What is the output of a PID controller (or any controller in general)?

I'm new to Simulink and I'm trying to get my hands a little dirty there to get used to using it. I'm working on a speed control of a switched reluctance motor. The input signal is to be fed to a ...
2
votes
1answer
64 views

Comparing Responses for Linear and Non-Linear System in Simulink

I am going through and reviewing this unprofessional (I highlight a potential mistake in Section3.4) paper: Nonlinear Model & Controller Design for Magnetic Levitation System Specifically, I am ...
0
votes
1answer
28 views

How to plot response of a non-linear state space model in Simulink?

I am trying to plot a non-linear model in order to compare it with it's linearized counterpart. I am following this paper Nonlinear Model & Controller Design for Magnetic Levitation System and ...
0
votes
2answers
49 views

Matlab Three Phase System Model

I have a question regarding MATLAB Simulink if anyone is familiar with the software. I usually have no problems creating basic models like this one below: I know the image is rather small. It is ...
-1
votes
0answers
30 views

Monitoring an AC voltage source from Simscape Electrical

When I want to monitor the following circuit (AC with 120V amplitude): I have the following graph with the scope: Can someone please help me see what I did wrong ? Thank you.
0
votes
0answers
10 views

Converting a simulink ODE system into Matlab script, output mismatch

Hello I am working on converting the following thermal model into a Matlab model, https://www.mathworks.com/help/simulink/examples/thermal-model-of-a-house.html Here are my codes for it: 1- ODE ...
1
vote
0answers
101 views

Implementing PID in PWM feedback to lower the settling time

I have created the following simple PWM feedback: The step response is: I have tried to add PID controller and I ran the following code to test it: ...
0
votes
0answers
42 views

Problem opening a PLECS blockset in MATLAB

A friend of mine sent his simulation of a converter for which he had used PLECS. It is in the format "example.slx". I have MATLAB R2017b. I downloaded the PLECS block set for MATLAB and activated it ...
1
vote
0answers
28 views

How can I get/calculate simulink bldc parameters

I tried to get the parameters for a bldc simulation https://de.mathworks.com/help/physmod/sps/ref/brushlessdcmotor.html I tried to find a similar motor to the I need (500 W, 20-25 Nm, geared bldc) ...
1
vote
1answer
124 views

Creating smooth PWM response

By using PWM I have converted some signal to pulses and inserted it into transfer function of 2/(0.01*s+1) I then compared between the result of the original ...
0
votes
2answers
55 views

What is the error in my circuit in Simulink?

Please see the image below. I get this error when I try to run the circuit on simulink. Series RLC branch and Series RLC branch 1 refer to the two DC-Link capacitors of the inverter on the left side ...
2
votes
0answers
36 views

Sending data from Simulink Matlab to development board F28379D

I'm fairly new to Simulink programming so bear with me. My project is to measure some parameters with the ADC of the board and send them over serial (SCI_A) to a Simulink file I'm running on my PC ...
0
votes
1answer
84 views

Simulating a variable mutual inductance model

Can we simulate a time varying mutual inductance in Matlab Simulink (or any other simulation tool). Matlab Simulink has a variable inductor, but I could not find not mutual inductor.
0
votes
0answers
70 views

Simulink Matlab : model

I am a beginner in MatLab Simulink and would like to create electrical model with Simulink model with PID controller, but I couldn't find some model in my figure for "springs" and "hard limits". ...
0
votes
1answer
124 views

How to model MPPT technique with PID controller

I need to model a MPPT algorithm with a PID controller at Simulink. The model will feed the gates of two mosfets of a push-pull converter. I have to extract max power from PV and have a fixed voltage(...
0
votes
0answers
19 views

Problems in simulating current model flux observer

I want to estimate rotor flux in 3 phase induction machine using Blaschke's equations. Here's the current model I'm suppose to simulate.:. I have to simulate this thing, I successfully obtained iqss ...
0
votes
0answers
12 views

Connection of Solar Array in Series in Matlab Simulink environment

I need to simulate a solar photovoltaic feed induction motor system. I need to connect 12 solar array/module connected in series to increase open circuit voltage. I have modeled a solar array of 36 ...
1
vote
1answer
171 views

VHDL Error 10481 : no primary unit

I'm designing a circuit using Simulink to VHDL generator to be burned into a FPGA. Simulink model works fine on Simulink, however, when I try to compile the VHDL code using Quartus II I get the ...
1
vote
0answers
236 views

How can i create a dead time between two signals in Matlab/Simulink?

I have a curcuit which outputs two different pulse signals from two different "PWM generator(DC-DC)" block. I will apply these signals to two different mosfets. Thus I need to create a dead time to ...
0
votes
0answers
58 views

how to edit the signal name of scope?

I used the Using the PLECS Scope to edit the scope but when it comes to the name of the signal I could not change even though I double-click on it and tries many times, is there any way to change the ...
0
votes
1answer
121 views

Triggering the thyristor for the single phase AC voltage controller in MATLAB

I have been trying to study the output characteristics of a thyristor based single phase AC voltage controller through the model in the picture attached. Could anyone tell me what I could do to ...
3
votes
1answer
421 views

How does a Delta-Sigma DAC work?

I have looked at how the Sigma-Delta ADC works and I understand it. However, it seems to me that there is not a lot of literature about the Sigma-Delta DAC. I want to build a model of it in Simulink....
0
votes
1answer
53 views

how to increase the size of value of XY axes in simulink scope?

as you have seen, I want to increase the size of the value shown in the x and y axes so it can be seen in the report,if you look at this figure, we barely see the value best regards
0
votes
0answers
132 views

How to plot a Nyquist Diagram in Simulink?

I can get the impedance in powergui,and I want to plot a Nyquist with this impedance
0
votes
0answers
31 views

Power source with buck converter, load and supercap

I have the following circuit created in MATLAB Simulink: I have a power source (Vfc,Rfc) on the left. Its operating point is set by using a buck converter (mosfet,diode,L,C1), which controls the ...
1
vote
1answer
223 views

How do I make a CPE (constant phase element) with Simscape language?

I want to use a CPE in my circuit, but I can't find a CPE in the Simscape library, so I want to make a CEP with the Simscape language. What can I do? I just want to build this circuit,like the picture,...
0
votes
2answers
162 views

shifting signal in simulink

I would like to know how to shift a signal in Simulink. The case is I am using PWM generator(DC-DC) and the input D is from a lookup table,a sine wave. From the PWM generator block i am taking the ...
0
votes
2answers
81 views

Is it possible to speed up Battery simulations with power converters in Simulink?

I am facing a huge problem with real-time analysis of a PCS simulation. I want to simulate a power converter system, which can be used as a power converter. I have to do an accelerated simulation with ...
2
votes
1answer
130 views

What is the correct way to measure DC power at the output of a boost converter in a Simulink simulation?

I modeled a DCDC boost converter, and I would like to measure the power at the output of the converter, I do not understand much about simulation times, sampling, and this sort of thing, so I do not ...
1
vote
0answers
152 views

Low frequency PWM Brushless DC Motor Speed Control

I am programming a L293D motor driver with a BLDC motor to spin at speeds of 60-300 RPM. It is for a hybrid drone/car where I want the motors to spin slowly while having the necessary torque to drive. ...
1
vote
0answers
137 views

Circuit Breaker Simulation in Matlab with Mayr and Cassie Equations

I'm trying to understand how to model arc circuit breaker. There is a simulation example as called Mayr and Cassie Circuit in Matlab&Simulink. I have examined Mayr and Cassie Differential ...
1
vote
1answer
198 views

Why simulink step response differs from matlab's step function?

step response is different in simulink showing oscillatory behavior unlike in matlab step function Transfer function Step response Block diagram in simulink Simulink scope
0
votes
2answers
65 views

Why should I specify a 'pulse width' when firing a thyristor rectifier/inverter?

If I'm correct, the controller will send a gate signal to this bridge (6-pulse or 12-pulse) and even if it sends them with 1 degree of width, the thyristors must close until the current through it ...
1
vote
0answers
60 views

Struggling to figure out why this capacitor voltage is huge

As you can see in this image from simulations on Matlab-Simulink: I'm tracking the blue signal (reference current) using this circuit Which is in this 400 kV HVDC link as "Snubber". So basically ...
0
votes
0answers
30 views

DSTATCOM Placement, reactive power appears to have greater affect on bus voltage when moved further away?

I have created a simulink model of a residential LV Distribution Network, with 14 buses, various loads and PV Solar injection on some of the buses modelled as constant real power injection. The ...
2
votes
1answer
81 views

Equations governing the impedance of a generalised constant-phase element in the time domain?

I apologize in advance for the large wall of text, but I feel like to properly ask this question, some background information is in order. I've been recently working on modelling the impedance of a ...
0
votes
0answers
37 views

If a current from a 12-pulse rectifier pass through this circuit, should the capacitor absorb energy?

I'm trying to give a "triangular" form to the incoming current like this: Where the yellow signal is the reference and the cyan one is the actual current. However, in order to track this current I ...
0
votes
0answers
51 views

Why output voltage of a 12-pulse rectifier oscillates with a resistive load?

I'm simulating a simple 12-pulse rectifier with just a resistive load at the output and altough I get every pulse, it seems that they are oscillating if I zoom out the signal. This is the system I ...
0
votes
2answers
88 views

Sine Function on Simulink

I'm trying to add the following function on my Simulink model. where C, B, and N are already variables in my file. Is the correct way to multiply omega by the gains 3N and N/2 an input that into the ...