Questions tagged [simulink]

The tag has no usage guidance.

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

User Code Start - End Structure In Simulink Coder Frameworks

Is there a user code start - end structure in simulink coder frameworks? I am using embedded coder. I am modifying the code generated by the Simulink. But If I change something on the model and re-...
  • 101
0 votes
0 answers
32 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
0 votes
2 answers
72 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 ...
  • 3
1 vote
0 answers
24 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{...
0 votes
1 answer
143 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" ...
0 votes
0 answers
66 views

Is there a way to output a variable from matlab simulink function block and use it to specify other parameters?

This function block outputs 'phase' which I then want to use as a variable like this: But as you can see simulink throws an error. I tried using Simout but it doesn't work. I am sure I am missing ...
0 votes
0 answers
24 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 ...
0 votes
1 answer
31 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 ...
0 votes
1 answer
186 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 ...
0 votes
0 answers
27 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 +/- ...
3 votes
2 answers
109 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 ...
  • 43
2 votes
0 answers
30 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 ...
0 votes
0 answers
73 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+...
-1 votes
1 answer
25 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 ...
3 votes
0 answers
34 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 ...
  • 207
-2 votes
1 answer
140 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 ...
0 votes
0 answers
47 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 ...
6 votes
1 answer
177 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 (...
0 votes
1 answer
93 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 ...
0 votes
0 answers
48 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 ...
1 vote
1 answer
111 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 ...
  • 331
0 votes
3 answers
122 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 ...
  • 1
0 votes
1 answer
80 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$ (...
  • 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 ...
  • 111
0 votes
1 answer
107 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.
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 ...
  • 71
2 votes
1 answer
342 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?
4 votes
1 answer
716 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? ...
  • 41
2 votes
1 answer
254 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 ...
3 votes
0 answers
272 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 ...
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 ...
2 votes
0 answers
591 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 ...
  • 121
7 votes
0 answers
556 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 ...
  • 81