Questions tagged [simulink]

Simulink® is an environment developed by The MathWorks for multidomain simulation and Model-Based Design for dynamic and embedded systems.

Simulink® is an environment developed by The MathWorks for multidomain simulation and Model-Based Design for dynamic and embedded systems. It provides an interactive graphical environment and a customizable set of block libraries that let you design, simulate, implement, and test a variety of time-varying systems, including communications, controls, signal processing, video processing, and image processing.

Some useful links:

2873 questions
0
votes
1 answer

Stateflow chart and C Action Language. Set array values for give in output a vector in single step

i'm sorry, maybe is a stupid question, but i have issue to set my array variable in a stateflow chart by using C Action Language. Usually in c language i can put in my static array all the values with " A[]={1,3,2}; " , but in stateflow chart,…
0
votes
1 answer

Error caused by missing Matlab shared libraries

I am attempting to run a standalone Unix executable generated from Simulink coder using the rsim.tlc target folder. I am using the Simulink coder to convert Simulink code to c code. When I run the executable on a computer without Matlab I get the…
George
  • 35
  • 5
0
votes
0 answers

Simulink - how to configure the appearance of a scope

I'm working on generating some figures for a paper from a simulink model, and would prefer to use minimal work to produce them so I'm trying to configure a simulink scope to output the figures I want on its own. The problem is, while I can get…
Hearth
  • 161
  • 7
0
votes
0 answers

Non-constant Torque issue in FOC algorithm (Simulink)

I am trying to develop a FOC algorithm in Simulink (see image attached) but I am having strange results in my simulation. My torque is not constant when it should instead varying periodically (see image attached) when it should be constant at 2 Nm.…
jefazo92
  • 77
  • 4
0
votes
1 answer

Turnaround timing: How much below the lead time it should be?

I have been developping a Matlab Simulink model to a client and it is required the model to be compatible with a time-rate of 1ms. My client will integrate this model with his model parent that runs at this time rate in a multi-core machine. In…
Cleber Marques
  • 426
  • 5
  • 20
0
votes
2 answers

bladeRF simulink no device available error

I am connecting the bladeRF x115 to simulink with Matlab 2016a on a windows 10 PC. I have followed the getting started guide on github: www.nuand.com/bladeRF-doc/guides/bladeRF_windows_installer Then I made a simple code as in the picture shown…
Smittie
  • 1
  • 4
0
votes
1 answer

Dynamically get n'th element of vector in Simulink

I have a vector [-1 1 -4 9 7] stored in a constants block. I also have signal which contains a scalar which is determined from other parts of my Simulink code. Let's call that scalar, 'n'. How do I extract the n'th element of my vector? Example:
0
votes
1 answer

"Error evaluating parameter 'Gain' in..." Simulink Error

I have a problem in Simulink with the following error: "error evaluating parameter 'Gain' in ... In my model, I have this gain block after a MUX with two inputs. I tried all the options in the 'Multiplication' tab, but with no results. Could you…
0
votes
1 answer

Cycle Time Simulink

I have to generate code from a Simulink program to be flashed into a controller. The controller must have a cycle time of around 10ms. How do I set it in Simulink? Just by setting the solver step to 10ms?
0
votes
1 answer

How to use FMIKit in 64-bit Matlab / Simulink to generate 32-bit binary FMU?

I have successfully used FMIKit2.7(from [https://github.com/CATIA-Systems/FMIKit-Simulink] )in 64-bit Matlab / Simulink (Matlab2017a) to generate a 64-bit binary FMU, which is indeed useful. However, now other simulation tools need to use 32-bit…
0
votes
0 answers

How to get real time audio data from raspberry pi to simulink and apply real time signal processing

I am facing a problem with getting live (real time) audio data from raspberry pi to simulink. I want to get the data continuously from the microphone that is connected the raspberry pi and process it in simulink continuously too. I am using the…
0
votes
0 answers

How do I evaluate the roots of a 7th order polynomial on simulink?

I'm doing a project in school and I need to evaluate the roots of a 7th order polynomial during a Simulink simulation. For that, I've decided to use the "roots" function but it seems that Simulink doesn't like this function - when running the…
0
votes
0 answers

How to handle "port widths or dimensions" errors in simulink?

I got below error when using simulink: How can I get rid of these errors?
Lu Liu
  • 67
  • 3
0
votes
1 answer

Simulink Raspberry Hardware External Mode Error Issue

I have a problem using Raspbery Pi hardware and Simulink, shown by the pictures below. I'm tring to control an LED and GPIO pin on the Raspberry Pi. I click Build, Deploy & Start. It works. But then I click Monitor & Tune for monitoring signals.…
0
votes
1 answer

Where can i find these two blocks in simulink?

I'm currenlty using MATLAB R2018A for my graduation project. I'm searching for the two blocks in the image below: I can't find it in simulink library browser.
1 2 3
99
100