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...

mer än 3 år 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...

mer än 3 år 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.

mer än 3 år ago | 2

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...

mer än 3 år ago | 0

| accepted

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

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år ago | 0

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

mer än 3 år 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....

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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 ...

mer än 3 år 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...

mer än 3 år ago | 2

| accepted

Question


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 ...

mer än 3 år ago | 2 answers | 1

2

answers

Answered
Repeating sequence as an input to a stateflow chart from Simulink, the first value is not read and calculated
Add breakpoints in you Stateflow model, and then step each and every cycle to analyse the value of the input ports and the state...

mer än 3 år ago | 0

Answered
how to get current path in a stateflow?
You should look into Stateflow Animations. It will highlight the latest path taken in blue during simulation, and the last path ...

mer än 3 år ago | 0

| accepted

Answered
How to calculate integral (surface area bellow curve) in Simulink?
Integrator block

mer än 3 år ago | 1

Question


Slower simulation than usual
Hi all I am running a simulation in Simulink. Usually the simulation takes about 15 minutes in real-time for 60 seconds of simu...

mer än 3 år ago | 0 answers | 0

0

answers

Answered
When is subsystem reference a better choice than model reference?
Subsystem References is new functionality to Simulink, it is only supported since R2019b. So industry will only slowly evolve to...

mer än 3 år ago | 12

| accepted

Answered
simulation time in hours
I am not particularly certain how your model behaves dynamically, and if it is made in the discrete time space or continuous tim...

mer än 3 år ago | 0

Answered
How can I count the number of times an input reaches a certain value?
Take the signal for the frost layer thickness, use a Relational Operator to compare if the signal is larger than a constant of 8...

mer än 3 år ago | 0

Answered
How to linearly fit a semilog graph
https://nl.mathworks.com/matlabcentral/answers/163349-linear-fit-of-a-semilog-graph?s_tid=answers_rc1-1_p1_MLT https://nl.mathw...

mer än 3 år ago | 0

Answered
How many Workspace's we have in MATLAB ?
There are three locations to store model data: Base workspace Model workspace Data dictionary Find more info here on the com...

mer än 3 år ago | 0

Answered
Breakdown the matrix signal into individual signals in Simulink
If you have a vector signal with three elements, you can extract those elements using the Demux block. The Mux block allows crea...

mer än 3 år ago | 0

Answered
Simulink: 4 bytes to float
Another way is to construct your output manually with 'Shift Arithmetic' blocks and perform bitshifts: The input to the left ...

mer än 3 år ago | 2

Answered
Simulink: 4 bytes to float
Use the Byte Unpack block and feed those 4 bytes into it after you have muxed them. Set Output port data type to {'single'} if y...

mer än 3 år ago | 0

Answered
How to determine the moment (time) at which the signal exceeded the set value in simulink?
Put an integrator block with input 1 inside an enabled subsystem. Use a relational operator to see if your exponential function ...

mer än 3 år ago | 0

Answered
How to use Enabled subsystems?
Change the Enable Port of the enabled subsystem to be 'Reset' for 'Status when enabling'. Set the 'Output when disabled' of the ...

mer än 3 år ago | 0

Answered
Simscape/Powergui diognastic - what does a red frame mean?
When there is an error/issue with blocks at build time, the diagnostic viewer can allow the blocks which cause the error to be h...

mer än 3 år ago | 0

Load more