Community Profile

photo

Jonas


Last seen: Today
202 total contributions since 2019

Jonas's Badges

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

View details...

Contributions in
View by

Answered
How can i fix this error?
Delete the mentioned file. It is just a cache file which is not necessary. Otherwise, maybe boot MATLAB in Administrator mode.

10 hours ago | 0

Answered
Separate Simulink block name into several lines
Shift + Enter

10 hours ago | 0

Answered
curren value of signal in scope
It is not possible with the Scope block. As you found out, you can only find the value on a vertical cursor of one signal at a t...

10 hours ago | 0

Answered
constant compare only drives one reset
The root-cause is because the Delay block is Direct Feedthrough. This means that it processes its inputs and directly sets the n...

3 days ago | 0

| accepted

Answered
Changing function packaging of Simulink Functions to inlined
I have the same question. I want to inline a Simulink Function, but the option is disabled. However, when integrating a Simulink...

4 days ago | 0

Answered
How to count how many times a state is visited?
Write the following inside state A: en: counter = counter + 1; and initialise counter = 0. The counter will be incremented on...

5 days ago | 0

| accepted

Answered
Best Practices for Simulink Simulation to Embedded Code
The text book way of working is to develop your controller inside a separate Simulink model file, and then using a simulation ha...

5 days ago | 0

Answered
How to find a ratio of a current value of signal to its previous value in Simulink?
Use Unit Delay block to store the previous signal value. Use Divide block to take the division of the signal and the output of ...

7 days ago | 0

Answered
how to use a vector output from a certain block as an input for if block, or is it possible?
So you have been posting this same question four times now in one form or another, but still it is not clear. What are those 2x...

10 days ago | 0

Answered
How to determine a Stateflow sequence?
https://nl.mathworks.com/help/stateflow/ug/about-active-state-data.html In the Model Explorer, for your Stateflow chart, check ...

13 days ago | 0

| accepted

Answered
Simulink wire color based on signal value?
No. But you can preprocess the signal by multiplying it with a logical signal, which would be true when the signal is >0 for exa...

19 days ago | 0

Answered
[Simulink] How can I specify to start a matlab embedded function's execution only when receiving a specific signal ?
Put the MATLAB Function inside an Enabled Subsystem.

28 days ago | 1

| accepted

Answered
My main folder is not generated during code generation of simulink model
Did you check 'Generate an example main program' under Code Generation > Templates?

1 month ago | 0

Answered
where is function block parameters:fcn that expression ex) sin(u(1))+cos(u(1))
Apparently the Fcn block is now considered obsolete and not recommended for usage, see its documentation. It has been removed fr...

1 month ago | 0

Answered
Plotting a signal with XY Graph (Simulink)
Send a Sinewave signal through a Relay block and plot the two signals using a XY Scope block.

1 month ago | 0

Answered
Trying to create a controller to maintain a certain speed
Use a PI-controller which receives 60MPH as setpoint and receives the actual speed, which controls the engine torque.

1 month ago | 1

| accepted

Answered
Executing Triggered/Enabled Subsystem
Use a Function Call Subsystem. In your Stateflow chart, use an Event and execute that on a state transition. Set the type of the...

1 month ago | 0

Answered
setting priorities on atomic subsystems
When using Data Store Memories, Simulink does not relate execution order from the placement of Data Store Read versus Data Store...

1 month ago | 0

Answered
How do I remove a signal from a scope?
Enable to display the Legend in the Scope. Click on the signal in the Legend box to hide it.

1 month ago | 0

Answered
Embedded Coder - How to generate code from subsystems, without optimizations ?
You can force Embedded Coder to create a separate function of a Subsystem by checking the option 'Treat as Atomic Subsystem' fro...

2 months ago | 0

| accepted

Answered
Help on Matlab Simulink
Set the initial value of the 1/z Unit Delay block to 31.

2 months ago | 0

Answered
What is the difference between rtu and rtb varibles in auto code generation from simulink data?
By default, local block output variables are appended with the prefix 'rtb_'. This setting can be changed in the Configuration P...

2 months ago | 0

| accepted

Answered
where to place the "From" block in this simulink model
Just delete the Goto blocks if you don't use them or disable the diagnostic for missing From blocks in the Configuration Paramet...

2 months ago | 1

Answered
Dimensions being inconsistent even though nothing has changed the output
The [1x1] seems to suggest it is interpreted as a matrix (although with height and width of 1), and not as a scalar with dimensi...

2 months ago | 0

Answered
How to plot the trajectory of point in Simscape?
Use the XY Graph block from Simulink.

2 months ago | 0

Answered
need output for a time interval of 1 month
If you set the time step to 1, you can just build your model where one time step equals one month. Time in Simulink is relative....

2 months ago | 0

Answered
A question about the current control for BLDC (Trapezoidal motor)
I did not open your Simulink model, but if the current rises so slowly, I would think either the inductance of your motor is too...

2 months ago | 1

Answered
Implementing a discrete buffer, i.e. a Memory Block with multiple frames
Here is example code for storing the last 10 samples. Of course, you can adapt to memorize more history samples. Summary: Use a...

2 months ago | 0

| accepted

Answered
Repeating pattern when sending serial data in Simulink
If you place blocks in a Simulink model, the blocks will be executed with a certain cycle time. This means thus you are sending ...

2 months ago | 0

| accepted

Answered
Why does Simulink mark a subsystem in purple?
Received feedback from MathWorks Support that it is a bug that the purple highlighting persists and a bug fix has been requested...

2 months ago | 1

| accepted

Load more