Simulink®, a MathWorks® product, is a block diagram environment for multi-domain simulation and Model-Based Design. It supports simulation, automatic code generation, and continuous test and verification of embedded systems.
Questions tagged [simulink]
37 questions
5
votes
2 answers
Inverse system in Simulink
I have the following inverse system
$$G(s)= s^2 + 2s + 3$$
How do I implement it in Simulink? Note that the transfer function is only accepted if and only if the order of the numerator is less than the order of denominator.
Kho
- 83
- 1
- 4
4
votes
2 answers
How to set parameters of the PI controller inside the PLL?
I am going to implement in C++ software the synchronous frame phase locked loop (SFPLL) for estimation
of angle and frequency of the three phase grid 220V/50Hz.
For the internal PI controller setting I have decided to use the design by emulation…
Steve
- 231
- 6
4
votes
1 answer
How do I get a faster system response?
I have this model in simulink (the graph is my output):
The step input has amplitude 0.5 m/s, and it steps up after 0.1 seconds. The gain $K_p=5$.
The saturation block is to keep the voltage between -3 and 3 volts.
The transfer function is the…
Carl
- 298
- 1
- 6
3
votes
0 answers
Role of Riccati Equations in Kalman Filter Design
I am working on a Kalman Filter (KF) design problem and I am struggling to understand the role of the Riccati equations in the design process of a KF.
Some sources discuss the importance of Riccati equations to the design of KF (e.g., Grewal and…
Simon Diemert
- 131
- 1
2
votes
1 answer
Analytic Signal Block in Simulink Gives Reduced Amplitude for the Imaginary Part
In Simulink, I have connected a sine wave to zero-order hold and zero-order hold to analytic signal block, as in the figure below. My purpose is to transform the real signal to the corresponding analytic signal by adding complex part, in order to be…
trxrg
- 23
- 3
2
votes
1 answer
Why does Simulink generate this code for a PID controller?
For the Simulink PID Controller model
The Simulink generated code (rewrite for better understanding) is:
#define PERIOD 0.005
double PID_step(double err,double P,double I,double D,double N){
static double Integrator,Filter;
double…
Jackoo
- 21
- 2
2
votes
1 answer
How to improve accuracy while converting floating point coefficients to fixed point in the case of an all pole IIR filter
I am having an all pole IIR filter of order 5 with floating point filter coefficients
[1,
-4.708642687,
9.963818327 ,
-11.99038368,
8.647611478,
-3.553230696,
0.659454607].
When an impulse input was applied to the IIR filter, the first…
Deepa
- 39
- 6
2
votes
1 answer
How to get Step Response from an Impulse Response in Simulink?
Im sorry if it seems like a trivial question but I am confused right now. Im currently watching my professors lecture. And he basically has $\lambda(t)$ as Step response and $k(t)$ as Impulse response of an LTI system. The integral of the Impulse…
John
- 125
- 5
2
votes
1 answer
Feedforward disturbance signal compensation
The reference Feedforward control concepts through Interactive Tools says, to minimise the effect of the disturbance $d$ on the process output $y$, a compensator $G_{\text{ff}}=P_3/P_1$ shall be used. From a theory point of view, no problem. Even a…
mikebuba
- 51
- 1
- 2
2
votes
0 answers
Simulink cross correlation issue
here is the Simulink model that i'm using :
The matlab function script :
function tau = fcn(sig,refsig)
tau = gccphat(sig,refsig);
The errors :
2
votes
0 answers
Understanding and converting Matlab's coarse frequency compensation function
I am trying to understand and convert to C Matlab's coarse frequency compensator the documentation for which can be found here: Documentation
Matlab's design itself is based on this IEEE paper: Carrier Frequency Recovery in All-Digital Modems for…
yellow_watermelon
- 59
- 6
2
votes
2 answers
Understanding Matlab's Automatic Gain Control function
I am trying to understand the automatic gain control block provided by the communications toolbox. The documentation is here: Documentation
My questions are in regards to two of the configurable parameters, the
DesiredOutputPower and…
yellow_watermelon
- 59
- 6
1
vote
0 answers
Transferring audio through arduino. Formation of a parcel
I'm new here. I want to try streaming audio using arduino.
I have:
arduino
Radio module nrf24l01
Computer
Matlab program, arduinoIDE
I want to use a computer microphone, step by step ADC of the computer. But here's how to learn how to form…
Антон
- 11
- 1
1
vote
1 answer
Complex Data type not accepted in Simulink
I am having an issue with the interaction of the Matlab function block in the Simulink with my model block. Below you can also find the picture.
I have created a Matlab function with three inputs and 1 output. Since in the MatLab function block, I…
Prateek Tiwari
- 11
- 1
1
vote
0 answers
Model of modulator and demodulator in Simulink. Why is MER so lowest?
I created a simple model in Simulink of a quadrature modulator, amplifier and quadrature demodulator. On the oscilloscope(scope in Simulink) and spectrum analyzer the displayed results look normal (at least I think so), but on the constellation…
Alexander Lyapunov
- 41
- 3