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.

1
vote
2answers
35 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
55 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
0answers
22 views

Sigma Delta in simulink sensitive to computational delays?

I am trying to design a simple sigma delta modulator (SDM) with some additional logics. I designed a first order SDM in simulink - which works fine, as shown below: But problem comes when I add some ...
0
votes
2answers
44 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 ...
0
votes
0answers
25 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
85 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
29 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
24 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
110 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
49 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 ...
0
votes
0answers
33 views

Comparing Pulse and wave

Im new to PWM and I have tried to generate some pulse. I have made a simulation that generates the command I should send to a servo in order to make a wheel move the direction I want (lower graph). ...
2
votes
0answers
24 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
78 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.
-1
votes
0answers
62 views

stm32 cube mx vs matlab simulink

I am a begineer to stm32 it has been two months since I began using STM32 for prototype building. I am currently doing a project which involves DSP. Today I came across an application notes in stm32 ...
0
votes
0answers
48 views

Why does my battery boost converter have such a large overshoot and take so long to reach steady state?

I am trying to simulate a lead-acid battery with a boost converter to a 150 ohm load in simulink but the load voltage has a massive overshoot and takes about 0.5 seconds to reach steady state, as you ...
0
votes
0answers
59 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
97 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
10 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
144 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
164 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
102 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
315 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
39 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
76 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
28 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
160 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
117 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
76 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
96 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
140 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
112 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
149 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
58 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
25 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
77 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
35 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
44 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
55 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 ...
0
votes
1answer
19 views

Transforming from abc reference frame to the qd0 variable reference frame?

I have been working on transforming variables from the abc reference frame to different qd0 frames of reference, such as the stationary reference frame, the synchronous reference frame, and the ...
0
votes
0answers
21 views

Model BLDC Motor Disturbances

I'm doing a flywheel attached to bldc model, and I'm applying disturbances to it. I want to model torque ripple and cogging on Simulink, but I can't find a formula for it. Does anyone know where I can ...
0
votes
0answers
51 views

how can i pipeline feedback loop without functionality corruption?

I have a design in simulink that contain several arithmetic logics in a loop that limited the overall frequency of the design. how can i pipeline feedback loop without functionality corruption? I've ...
0
votes
0answers
41 views

Pso based Maximum Power Point Tracking

I am in trouble with MATLAB FUNCTION while getting V and I from block input and use it in FOR LOOP and output D for boost converter. I write a PSO based MPPT for a pv array in MATLAB FUNCTION block ...
0
votes
0answers
96 views

Why if I change the sample time in Matlab/Simulink modifies results in a huge way?

I'm having trouble with the circuit I'm studying but in order to modify some values, I want to get out this question of my mind. * Example 50e-6 * Example 50e-7 * Example 50e-8 I use a S-Function ...
1
vote
1answer
413 views

Issue with “Simulink does not support code generation”

I have something similar to this simplified following block diagram on Simulink. It looks rather messy. I want to replace a 3-point summing block with a function block, while keeping the same ...
0
votes
0answers
71 views

Design and simulation of snubber and hysteresis current control

I want to do an hysteresis current control with this circuit: that have three operation modes: in order to make the output current to follow a triangle wave as reference. I made a simple C code to ...
0
votes
0answers
67 views

How to implement if else using Xilinx block-set in Simulink?

I am implementing a multi-reference PWM for a multilevel inverter. I am using Xilinx block-set for simulation. I need to use if else statement. Is there any method ...