Community Profile

photo

Jonas


Last seen: Today
118 total contributions since 2019

Jonas's Badges

  • 6 Month Streak
  • Thankful Level 2
  • Knowledgeable Level 3
  • First Review
  • Revival Level 1
  • First Answer

View details...

Contributions in
View by

Question


Toolbox to check Enumeration cast from uint16
Hi all I am running a simulation wherein I am using a Simulink Enumerated type. So I have defined a limited amount of enumerate...

3 Tage ago | 0 answers | 0

0

answers

Answered
How to get a threshold in Simulink that works in both directions and that make an action once per passing
There are multiple ways to do it. I would do it like this. It might inspire you. The variable State should be initialised to 100...

4 Tage ago | 0

Question


Change Simulink.Parameter ExportedGlobal from inside Simulink model
Dear all I am developing a controller model which I have put inside a Model Reference. I store all my Simulink.Parameter and Si...

9 Tage ago | 1 answer | 0

1

answer

Answered
Variant Subsystems control by Model Workspace variables?
You can create a Simulink.Variant variable and put it inside a Data Dictionary, and then link this Data Dictionary to the model....

15 Tage ago | 0

Answered
Combine Simulink Signals with Different Data Types Without Using a Bus
A Bus serves the purpose of being able to combine signals with different data types. If you do not like the visual way of using ...

22 Tage ago | 0

| accepted

Answered
what's a block of code and function block in simulink?
Use a triggered subsystem. Alternatively, you can also use a function-call subsystem.

22 Tage ago | 0

Answered
Trouble understanding the Flip block in Simulink
When you are importing a data vector in your Simulink model, it reads the data vector one by one, sample by sample and executes ...

23 Tage ago | 0

Answered
Integrator State Port: Why is its use restricted?
"This doesn't work as naively expected because the integrator reset occurs before the Triggered Subsystem can copy the result. S...

23 Tage ago | 0

Question


What is a 'Code Dictionary'?
Hi all I want to add a reference of a data dictionary to another data dictionary, but I am getting the following error: ...

24 Tage ago | 1 answer | 0

1

answer

Answered
Why Do Some Blocks in the Discrecte Library Not Have a Sample Time Parameter?
The discrete blocks you mention inherit their sample time from the blocks they are connected to. The Difference block for exampl...

24 Tage ago | 0

Answered
Simulink bug - adding a PID only to scope creates large fluctuations
Your solver settings change when you uncomment the PID(s). If you fix the solver to ode45 for example, the simulation runs ok. Y...

25 Tage ago | 0

| accepted

Question


Change Simulink.Parameter inside Simulink model
Hi all I am using Simulink.Parameter objects stored inside a Data Dictionary to parameterize my model. They have a default valu...

29 Tage ago | 1 answer | 0

1

answer

Answered
How can i remove data points from an array in simulink ?
If you have the code to perform it in MATLAB, you can use an embedded matlab function. Stateflow also seems like a good candida...

etwa ein Monat ago | 0

Answered
parsim workspace variables problem
Please see the question and answer here: https://nl.mathworks.com/matlabcentral/answers/446894-why-is-my-variable-undefined-when...

etwa ein Monat ago | 1

| accepted

Answered
Sine Wave display data
You can use the Clock block to get the execution time. Then use a comparison block, which compares the execution time with your ...

etwa ein Monat ago | 0

Answered
Simulink filtering of a table
Use a Direct Lookup Table with 5 dimensions.

etwa ein Monat ago | 0

Answered
Tapped delay function with varying size in Simulink
Hi Swati I have tested a few things and I don't think it is an easy problem to solve. I have personally never used the Tapped ...

etwa 2 Monate ago | 0

| accepted

Answered
Is it possible to model synchronous machines merely with controlled sources, s-functions and R L C components?
You are looking to model the synchronous machine equivalent circuit. Look online for how the circuit looks and build the blocks....

etwa 2 Monate ago | 0

Answered
How to export all the variables stored in .mat file into xls file
There are various options: more info here.

etwa 2 Monate ago | 0

Answered
Simulink raise model output to 1.5 power
You need to use the Math block and select the 'pow' function. Alternatively, you can use the Fcn block and use u(1)^1.5 if you ...

etwa 2 Monate ago | 0

Answered
The output value of discrete PID controller is NaN
Check the block 'Rotation Order: ZYX'. Does it work properly?

etwa 2 Monate ago | 1

Answered
Code generation targets for referenced models
Are you thinking about a certain setting in the Configuration Parameters which may be in conflict? It is certain that both need...

etwa 2 Monate ago | 0

| accepted

Answered
What is the difference between build, deploy & start and build button on embedded coder?
Build means that MATLAB generates C-code from your Simulink model. Deploy means that the generated C-code is deployed (placed) ...

etwa 2 Monate ago | 0

| accepted

Answered
Hyperlink in Excel cell to open Simulink model?
You can launch Matlab from Windows system prompt, see the documentation. Maybe you can find a way to execute a command line code...

2 Monate ago | 0

Answered
Making the dashboard scope scroll
Go to the configuration properties of the scope block, and set the 'Time span overrun action' to 'Scroll' instead of 'Wipe'.

2 Monate ago | 0

Answered
How to select port in Multi Switch ?
Since you are using look-up tables with the monthly data anyway, I assume that the data for for example August will be zero in t...

2 Monate ago | 0

Question


Array as a #define instead of scalar
Hi all I want to use a small array as a Storage Class 'define': However, when I use this in my model and try to generate cod...

3 Monate ago | 1 answer | 0

1

answer

Answered
Data variants in Simulink Data Dictionary
I would suggest to put the Simulink.Parameter variables inside a separate Data Dictionary. Then, create two seperate files of th...

3 Monate ago | 1

Answered
How can I exctract 2 values from a 1-by-3 array in Simulink ?
Use a Demux block with three outputs to extract the three signals, and then another Mux block with two inputs to combine the two...

3 Monate ago | 0

Load more