Questions tagged [simulink]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 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
1answer
25 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
1answer
27 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
0answers
21 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
2answers
56 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 ...
2
votes
0answers
18 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
0answers
17 views

What is the order of execution in system models?

I'm learning SysML/MBSE right now. In what order is a model "executed", that is: in what order are dependencies between properties reconciled? For instance, if I have one component/subsystem ...
0
votes
0answers
63 views

Simscape Flexible body - modeling a busbar as a flexible component on Simscape

I am trying to model a copper busbar as a flexible body for simulating it in the Simscape Multibody environment. I have built the model, but I am failing to generate the flexibility. I will describe ...
0
votes
0answers
17 views

PSCAD question regarding how to use graphs

so this question is to do with coursework, but I just need some guidance as I am not exactly sure where I'm going wrong. I missed my 2 weeks of practical classes due to my roommate having covid-19, so ...
0
votes
0answers
42 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
1answer
22 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
0answers
28 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 ...
-2
votes
1answer
74 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
0answers
30 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 ...
5
votes
1answer
154 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
1answer
64 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
0answers
44 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
1answer
100 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 ...
0
votes
3answers
119 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 ...
0
votes
1answer
74 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$ (...
1
vote
0answers
37 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 ...
0
votes
1answer
83 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
1answer
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 ...
2
votes
1answer
336 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
1answer
599 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? ...
2
votes
1answer
221 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
0answers
250 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 ...
3
votes
1answer
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
0answers
521 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 ...
7
votes
0answers
533 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 ...