已回答
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...

3 years 前 | 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...

3 years 前 | 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.

3 years 前 | 2

已回答
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...

3 years 前 | 0

| 已接受

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

3 years 前 | 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...

3 years 前 | 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...

3 years 前 | 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...

3 years 前 | 0

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

3 years 前 | 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....

3 years 前 | 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...

3 years 前 | 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...

3 years 前 | 1

| 已接受

已回答
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 ...

3 years 前 | 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...

3 years 前 | 2

| 已接受

提问


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

3 years 前 | 2 个回答 | 1

2

个回答

已回答
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...

3 years 前 | 0

已回答
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 ...

3 years 前 | 0

| 已接受

已回答
How to calculate integral (surface area bellow curve) in Simulink?
Integrator block

3 years 前 | 1

提问


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

3 years 前 | 0 个回答 | 0

0

个回答

已回答
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...

3 years 前 | 14

| 已接受

已回答
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...

3 years 前 | 0

已回答
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...

3 years 前 | 0

已回答
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...

3 years 前 | 0

已回答
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...

3 years 前 | 0

已回答
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...

3 years 前 | 0

已回答
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 ...

3 years 前 | 2

已回答
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...

3 years 前 | 0

已回答
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 ...

3 years 前 | 0

已回答
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 ...

3 years 前 | 0

已回答
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...

3 years 前 | 0

加载更多