Questions tagged [simulink]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

81 Level Inverter Problem when using a Motor as a Load (Simulink)

i made a VFD based on (See reference 1). The problem is that, when connecting a Motor (Asyncrhonous Machine SI) as the load... the Noise just goes crazy. First, using an RLC Series Load (Default) i ...
MastergGM's user avatar
0 votes
0 answers
24 views

Searching for a Library of Simulink models of Fuel cells

I have a task at hand and in order to do that I must create a model library of Simulink/Simscape (or any other similar software) of models. Can I find such models in excess anywhere? The models must ...
Abdullah Yasin's user avatar
0 votes
0 answers
14 views

Signal processing and modulation in Simulink

I want to add input to my Simulink model from PC / Laptop keyboard. I found a few similar s-functions in which this opportunity is implemented but the problem is that it only shows a discrete "...
syat-cd's user avatar
0 votes
0 answers
32 views

System identification of Blue Robotics Thruster with Simscape multibody

I have CAD design of a Blue Robotics Thruster 200. The thruster is imported to Simulink. From data given Blue Robotics Thruster 200 have MATLAB system identification toolbox been used to generate ...
Tor Erik Haavik's user avatar
0 votes
0 answers
12 views

How to add wireless capability to DC Electric Charging Vehicle Diagram?

I am using this DC EV Charger model as a base for research provided by Mathworks: https://www.mathworks.com/help/sps/ug/dc-fast-charger.html I want to add some wireless receiver/transciever to the ...
ADAS20's user avatar
  • 1
0 votes
1 answer
132 views

What is the Z transform of the Discreate PI control model?

I have a discreate PI controller implemented in stm32 MCU, it has the following form: $$ PI=K_p\cdot[r(t_i)-y(t_i)] + (K_I)\cdot\sum_{n=0}^{i}[r(t_n)-y(t_n)]\cdot\Delta t $$ where $r(t_i)$ is the ...
zymaster's user avatar
0 votes
0 answers
20 views

Amplification of the P-component

Given again in this simulation is an unknown system. This time the excitation source is not known. In addition, the P, I and D components are not shown individually in the scope, but summed up. are ...
affe_47's user avatar
0 votes
0 answers
34 views

steering wheel angle control

I am working on an autonomous vehicle's control, specifically the steering wheel angle control. Knowing that I used kinematic bicycle model, my questions are: How do I choose the actuator for my ...
Asmaa GZ's user avatar
0 votes
1 answer
77 views

MATLAB allmargin() function return multiple GainMargin, but how to identify them on the Bode plot?

I have a high order discrete transfer function model which has the following form. When I use the allmargin function to get the gain margin, I get the following result: ...
zymaster's user avatar
0 votes
0 answers
21 views

Optimal design for PWM parameters in Simulink

I am simulating a simple open loop 3 phase inverter with a inductive filter and resistive load, using a PWM block to drive the gates. Model is using the following: Inductive Filter : 10mH Resistive ...
SS1's user avatar
  • 1
0 votes
1 answer
59 views

Orientation and horizontal position control of a bar in 2D

I have a scenario where I have a bar of 0.1 m in length, 10N weight is applied in the center. Two forces are applied on the bar at both ends vertically, right one if 5.1 N and the left one is at ...
Jack L's user avatar
  • 1
0 votes
1 answer
244 views

How to Use a parameter in Matlab Simulink?

I want to include a parameter in Simulink. For example, like the block in the picture. How to use a parameter in the gain and get the output which is L*(input), which 'L' is only a parameter, like '...
Qing's user avatar
  • 1
1 vote
2 answers
129 views

Dynamic forces in Simulink

I have the equation of motion: $a = \frac{1}{m} \left( F_1 - F_2 -F_{fric} \right)$ where a is the acceleration and m is the mass of an object. $F_{fric}$ is the friction calculated as: $F_{fric} = B \...
Nil's user avatar
  • 61
0 votes
0 answers
69 views

Simulink models comparison issue

I'm comparing two simulink models and in the report i'm getting the following difference. I don't really figure out what that difference is. Any idea is appreciated
Mohammad's user avatar
0 votes
2 answers
268 views

Modeling a second order system in time and frequency domain

For school I was asked to model the transfer function $H(s)=\frac{3}{(s+4)(s+5)}$ in both the time and frequency domains using initial conditions $y(0)=2,y'(0)=3$, a step input, and Simulink. I would ...
Red's user avatar
  • 3
1 vote
0 answers
43 views

Simulinks modeling of 2-loop circuit containing LRC elements

I have been attempting to model the following circuit using KVL and Simulinks: Applying KVL generated these coupled differential equations: $$ 0 = -V + \frac{q_1}{c_1} + R ( \frac{dq_1}{dt} - \frac{...
FawltyPlay's user avatar
0 votes
1 answer
385 views

Simulink Treating Discrete-Time State-Space as Continuous-Time?

I have a MATLAB script wherein I take a second-order ODE on $\mathbb{R}^3$ (vector field on the phase space), then, at a critical point, take the Jacobian matrix $A$, use a "fully-actuated" ...
Jeffrey Rolland's user avatar
0 votes
0 answers
39 views

Matlab function or Simulink to solve ODE

For a large project that uses Simulink, is it better to creating a subsystem within Simulink to solve an ode using the assortment of blocks or use a MATLAB function block inside Simulink that makes a ...
Patticus's user avatar
0 votes
1 answer
71 views

"Roll My Own" Integrator Block for Multiple Signals

Is it possible to create a user-defined block in Simulink (and, later, XCos) that accepts a variable number of signals (I anticipate working with mainly 12 signals but not necessarily that number of ...
Jeffrey Rolland's user avatar
0 votes
1 answer
558 views

Reject Negative Input Simulink

Note: The design is implemented in Simulink. Suppose I have a system wherein I am computing the sum of errors per discrete time interval. Now, I only want to consider positive errors to be summed up ...
Rob Christian Caduyac's user avatar
0 votes
0 answers
31 views

Process disturbance in PI controller help

This is the project i'm working on and i'm struggling to understand one sentence which is stopping me from progressing the project. I'm struggling to understand what it means when it says to add +/- ...
Samuel Pappalardo's user avatar
3 votes
2 answers
195 views

Modeling Vehicle Acceleration - Simulink

Hello I am modeling a vehicle that has a seperately excited DC motor as the power plant utilizing the constant-torque and constant-power regions for traction. The acceleration is governed by the ...
james's user avatar
  • 43
2 votes
0 answers
46 views

How are circular dependencies dealt with inside MBSE?

How are circular dependencies (best) managed inside of MBSE environments? Let's say I have two properties that are linked to each other / they are linked to properties that affect each other. How is ...
RealMech's user avatar
0 votes
0 answers
95 views

How to model a double transfer function in Simulink?

I'm trying to model an actuator in Simulink based transfer functions previously derived. One of functions is $$\omega_p=G_2(K_cG_1V_c-c)$$ where $$G_1=\frac{K_e}{\tau_es+1}$$ $$G_2=\frac{1}{c+...
square potato's user avatar
-1 votes
1 answer
27 views

Regressor-passivity robot control. Help with simulation (Simulink/Matlab)

I'm trying to simulate a 2DOF planar pendulum with a regresor-passivity control, the thing is I've been having some issues with my simulation, I'm using Simulink, but in theory I know my control law ...
Daniel Arevalo's user avatar
3 votes
0 answers
40 views

How to measure / calculate Tait-Bryan angles of a moving platform in SimMechanics

I exported a model of the mechanism created in SolidWorks to SimMechanics in order to explore the possibilities of control. To solve the problem, i need to know the angular position of the mobile ...
dtn's user avatar
  • 226
-2 votes
1 answer
205 views

Limiting PID controller's output making the plant unstable and untunable

I am using the PID block in Simulink and limiting the output to (+/-)5. The plant becomes unstable and untunable after putting these limits. The plant is stable and tuneable otherwise if no limits are ...
Munish kumar's user avatar
0 votes
0 answers
59 views

Tool to simulate sensor data

Say I have a light source at a distance of 1Km from a light detector (photo detector). Right in front of the sensor, I keep a rotating reticle with some sort of pattern. To better appreciate the ...
Ashwin Kumar k's user avatar
6 votes
1 answer
212 views

I have a problem with my representation of roll in Simulink

I am currently an engineering student and a member of the aerospace club of my engineering school (ESILV) which is called LéoFly. We’re a team of 12 students and are building a Fusex (...
Axel JOLY's user avatar
0 votes
1 answer
134 views

How to input amplitude on a second order transfer function?

I have some samples of readings from an accelerometer (unit: g) and I did a FFT (on MATLAB) on the vector generated from these samples to see its frequency spectrum. Then I have isolated the peaks and ...
André Rocha's user avatar
0 votes
0 answers
50 views

Solving Hertz Impact ODE with Simulink

I have a question about modelling a nonlinear 2nd order ODE for an impact of a sphere on a thin plate in Simulink. Depending on the solver and solver options, my results in Matlab vary a lot. Some are ...
H. Fisher's user avatar
1 vote
1 answer
127 views

Strange simulink error. Professor & TA don't know. Any Ideas?

I am currently working on developing a simulation for a restricted UAV, and I’m having some issues with Simulink while doing this. I have my mathematical equations which have been approved by my ...
gunter's user avatar
  • 321
0 votes
3 answers
133 views

How to find the balance position of valve downstream a tank?

We have a tank which has a constant inflow of water (Qi). The level (h) of water in tank is controlled by opening/ closing (l) a valve downstream of the tank. Overflow height of the tank is 4 meter. I ...
abrar's user avatar
  • 1
0 votes
1 answer
91 views

Implementing a linearized differential equation in a simulink control loop

I have the following differential equation. $$\ddot{x} = \frac{q}{m}\cdot I^2 - k_s (x+l)$$ I want to linearize it around an (unknown) point $x_0$. I know I can calculate $I_0$ by inputting $x_0$ (...
Skydiver's user avatar
  • 245
1 vote
0 answers
45 views

Simulink analysis of data parallel to generation

I would like to simulate the following scenario with Simulink/Matlab(/Stateflow): A random number generator is running. Every 10 seconds the numbers that were generated during the last 10 seconds are ...
ec-m's user avatar
  • 111
0 votes
1 answer
141 views

dSpace overrun issue

I'd like to ask you if a C mex s-function model in Simulink can get the dSpace execution time lower, rather than having a model with blocks and functions.
Railectric's user avatar
0 votes
1 answer
54 views

Using a controller for a simple heating system

I am new to control modeling. Given the following problem: I want to control the heating of a house. Therefore, a top unit should be switched on (nominal load, no ramp up) as soon as the production of ...
Kenni's user avatar
  • 71
2 votes
1 answer
346 views

Why we use GPIO for embedded systems? [closed]

I'm using an F2802x microcontroller and I saw in Embedded Coder in Simulink that I have Digital output block. When I use this block, how does it work?
user7116's user avatar
4 votes
1 answer
809 views

Is it normal to get different solutions with different ODE methods in MATLAB simulink?

I made a block diagram using simulink. When I solve it with ode45 and ode23 it gives me different graphs. Is it normal? Should I use the proper one? ...
Deccoyi's user avatar
  • 41
2 votes
1 answer
283 views

Problem with process controls/simulink?

I have an issue with simulink, basically it's to do with a second order system, well two first order systems in series. As I understand it as you increase the damping factor (above 1), the system ...
MathsIsHard's user avatar
3 votes
0 answers
298 views

Single-phase fully-controlled thyristor converter simulation using simulink

I am trying to implement a simple single-phase fully-controlled thyristor converter using Simulink. As load I have placed just an inductor, the firing angle is set to a=60 deg., f=50 Hz and the rms ...
user3212953's user avatar
4 votes
1 answer
2k views

Speed Control of Quadcopter along with Position Control Using PID with Simulink

Within MATLAB Community, I found an example of a simple quadcopter model control built with Simulik and SimMechanics, The controllers handle position and orientation control. I want to extend this ...
mozcelikors's user avatar
2 votes
0 answers
686 views

Export simulink sdi dataset from MATLAB 2015b

I have used the Simulation Data Inspector in Simulink to log a dataset of two time varying signals. The only option I see concerning exporting is to .mat or to workspace, which basically produce the ...
fluxmodel's user avatar
  • 121
7 votes
0 answers
574 views

BER peroformance of MPSK and MQAM in Rayleigh fading channel

I have a question regarding bit error rate (BER) performance over the Rayleigh channel. I observed BER performance over the AWGN channel using Simulink in MATLAB. I used to change the "SNR" parameter ...
Sara's user avatar
  • 81