Community Profile

photo

Jonas


Last seen: 2일 전
215 2019 이후 총 참여 횟수

Jonas's 배지

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

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
S-function is eliminated through code optimization
One solution is to create a Simulink.Parameter object with the value of the index, and Storage Class Const. Then use the paramet...

4일 전 | 0

| 수락됨

질문


S-function is eliminated through code optimization
Hi all I want to create an S-function by using the S-function Builder to generate a wrapper function which calls external code....

4일 전 | 답변 수: 1 | 0

1

답변

답변 있음
Branch wires in Simulink
You can branch a wire by holding the ctrl key and then click and drag. For this particular case, you could also add a second El...

5일 전 | 0

답변 있음
How to keep a boolean true value once it has been reached?
Use the Boolean signal to trigger a Triggered Subsystem which triggers on rising edge, which contains a Constant 'true' which co...

5일 전 | 0

답변 있음
Why do I receive a warning on bus-capable blocks + matlab function from r2017 and not before?
I get no warnings when running your model or searching objects. Maybe it is related to the fact that you create the Bus object ...

5일 전 | 0

답변 있음
Implementing While loop in Simulink
https://nl.mathworks.com/help/ecoder/ug/while-loop.html The documentation demonstrates the While Iterator subsystem and alter...

6일 전 | 0

답변 있음
How can I solve this matrix problem?
Use a for-loop which goes from 1:n over the two dimensions, and use an if-statement to write a 1 and an else statement to write ...

9일 전 | 0

답변 있음
Stretch an For-Iterator Subsystem over multiple timesteps
That is not possible within the functionality of a for-loop (which is what a For-Iterator is). If it would be possible, the exec...

17일 전 | 1

질문


Create Variant object based on Configuration Reference
Hi all I have a structure of models and model references, which all use the very same Configuration Reference object as their C...

18일 전 | 답변 수: 1 | 0

1

답변

답변 있음
Persistent Data in Stateflow
Variables you define as 'local' or as 'output' in the chart are persistent over chart executions. They will take on their initi...

19일 전 | 0

| 수락됨

답변 있음
MATLAB function block initialization problem.
Define your variable as being persistent, to remember its value across executions. Also, add logic that writes an initialisatio...

24일 전 | 0

답변 있음
Can I decouple a time-consuming Simulink function block or Function-call subsystem from Simulink fundamental sample time?
You need a background task to put those heavy calculations inside. Depends heavily on your target if it will be easy or hard to...

26일 전 | 0

| 수락됨

답변 있음
How to exchange data between Simulink model and App Designer when run in EXTERNAL MODE?
Does this example learn anything? openExample('SlrtAddAppDesignerAppToInvertedPendulumModelExample'); app = slrt_ex_pendulumAp...

약 1달 전 | 0

답변 있음
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.

약 1달 전 | 0

답변 있음
Separate Simulink block name into several lines
Shift + Enter

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

답변 있음
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 ...

약 1달 전 | 0

답변 있음
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...

약 1달 전 | 0

답변 있음
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 ...

약 2달 전 | 0

| 수락됨

답변 있음
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...

약 2달 전 | 0

답변 있음
[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.

2달 전 | 1

| 수락됨

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

2달 전 | 0

답변 있음
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...

2달 전 | 0

답변 있음
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.

2달 전 | 0

답변 있음
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.

2달 전 | 1

| 수락됨

답변 있음
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...

2달 전 | 0

Load more