Community Profile

photo

Jonas


Last seen: 11日 前 2019 以来アクティブ

Statistics

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

バッジを表示

Content Feed

表示方法

回答済み
How to display the current value of a TagetPC-Signal in a numeric edit field (App Designer) and update the value automatically every timestep ?
Inside the myTimerFcn, write: app.AEditField.Value = getsignal(tg,'Path',1);

11日 前 | 1

| 採用済み

回答済み
How can I generate code for a Matlab function block in Simulink that contains a ''quadprog function''?
See the C/C++ Code Generation notes here. See an example for generating code with quadprog function here.

16日 前 | 0

回答済み
How to display the current value of a TagetPC-Signal in a numeric edit field (App Designer) and update the value automatically every timestep ?
You need to create a timer object Attach a function call to the timer object Put your code to assign the realtime value to the...

16日 前 | 0

回答済み
Interpretation of Simulink block warning
You have defined minimum and maximum values of a certain output or signal, and then probably created a vector of it using a Mux ...

17日 前 | 1

| 採用済み

回答済み
How to convert decimal into hexadecimal in "S function" Matlab ?
input = uint16(2748) output = zeros(2,1,'uint8'); output(1) = bitshift(input,-8); output(2) = bitand(input,255); output Hex...

18日 前 | 0

回答済み
Cell arrays as top-level function outputs are not supported in MATLAB Function Block
The input and output of a MATLAB Function block in Simulink needs to be of a data type supported by Simulink. The data types sup...

18日 前 | 0

| 採用済み

回答済み
make a static const variable in generated code with Embedded Coder
In either the Model Workspace or a Data Dictionary linked to your model, create a Simulink.Parameter object and name it "MyNumbe...

19日 前 | 0

回答済み
Deactivate a switch block once the threshold is achieved.
https://nl.mathworks.com/help/simulink/ug/enabled-subsystems.html

24日 前 | 0

回答済み
Just want to display the scope's parameters for a period not from 0
Put the Scope block inside an Enabled Subsystem. Use the Digital Clock block to get the simulation time Use Relational Operato...

25日 前 | 0

| 採用済み

回答済み
How to run cyclic Simulink block once
Put it inside a Function-call Subsystem and use a function-call signal to trigger it Put it inside a Triggered Subsystem and to...

25日 前 | 1

| 採用済み

回答済み
How to input time series in a block parameter in Simulink?
https://nl.mathworks.com/help/simulink/slref/fromworkspace.html https://nl.mathworks.com/help/simulink/ug/load-data-using-the-f...

26日 前 | 0

回答済み
How to stop if else condition after it executes only once.
Put your blocks inside an enabled subsystem, and use the outputs of your if-else block to disable the subsystem itself.

28日 前 | 0

回答済み
Size mismatch when i am using simulink
You have an input named 'u' and an output named 'u', with different sizes. On line 9, the compiler thinks you are assigning the...

約1ヶ月 前 | 0

| 採用済み

回答済み
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...

約2ヶ月 前 | 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....

約2ヶ月 前 | 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...

約2ヶ月 前 | 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...

約2ヶ月 前 | 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 ...

約2ヶ月 前 | 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...

約2ヶ月 前 | 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 ...

約2ヶ月 前 | 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...

約2ヶ月 前 | 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...

約2ヶ月 前 | 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...

2ヶ月 前 | 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...

2ヶ月 前 | 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...

2ヶ月 前 | 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...

2ヶ月 前 | 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.

3ヶ月 前 | 0

回答済み
Separate Simulink block name into several lines
Shift + Enter

3ヶ月 前 | 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...

3ヶ月 前 | 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...

3ヶ月 前 | 0

| 採用済み

もっと読み込む