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

| 수락됨

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

3달 전 | 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...

3달 전 | 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...

3달 전 | 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 ...

3달 전 | 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...

3달 전 | 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 ...

3달 전 | 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...

3달 전 | 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.

4달 전 | 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?

4달 전 | 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...

4달 전 | 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.

4달 전 | 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.

4달 전 | 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...

4달 전 | 0

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

4달 전 | 0

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

4달 전 | 0

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

4달 전 | 0

| 수락됨

답변 있음
Help on Matlab Simulink
Set the initial value of the 1/z Unit Delay block to 31.

4달 전 | 0

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

4달 전 | 0

| 수락됨

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

4달 전 | 1

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

5달 전 | 0

답변 있음
How to plot the trajectory of point in Simscape?
Use the XY Graph block from Simulink.

5달 전 | 0

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

5달 전 | 0

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

5달 전 | 1

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

5달 전 | 0

| 수락됨

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

5달 전 | 0

| 수락됨

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

5달 전 | 1

| 수락됨

질문


Why does Simulink mark a subsystem in purple?
Simulink has marked a subsystem with a purple border. The border color of the block itself is still black, but there is another ...

5달 전 | 답변 수: 2 | 0

2

답변

더로드