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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 2

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 2

| akzeptiert

Frage


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

mehr als 3 Jahre vor | 2 Antworten | 1

2

Antworten

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 1

Frage


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

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

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

mehr als 3 Jahre vor | 14

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 2

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

Mehr laden