Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

I have modeled a simple state machine in Stateflow (Simulink). I want to start the state machine with an external signal (start). When activated, it should set the flag FSM = 1, indicating that the ...
Jack's user avatar
  • 101
0 votes
0 answers
24 views

I have a list of products, and when I click on a product, I fetch details from the database and display them in a detail screen. I'm using Jetpack Compose and StateFlow to manage the selected product. ...
Hosein.m.barazandeh's user avatar
0 votes
0 answers
56 views

I have designed a basic State-flow model. When I'm trying to run the model, I'm getting an error message Invalid connection from output port 1 of constant to Input port, Ports are not compatible and ...
Chandru R's user avatar
2 votes
1 answer
268 views

I have a system setup like the sample stateflow: Condition1 Occurs and we go to Sub1. If Condition3 then occurs will it bring us back to Test1? Similarly if we get to sub2 through Condition1 and ...
Horror Symphony's user avatar
0 votes
0 answers
96 views

After designing my state machine using matlab state flow and generating its C code using code generation, I could easily run it in my application in visual studio. However, after a while I needed to ...
siii fsxa's user avatar
0 votes
1 answer
266 views

I have a very simple example. Two fans (A and B) are in a facility, representing each as a state. State Fan B will enter after 20 seconds state Fan A starts working. Therefore, after 20 sec, state ...
ananvodo's user avatar
  • 381
0 votes
1 answer
383 views

For reasons far outside my control, I have now been thrust into doing MATLAB/Simulink/Stateflow work. I've done the On-Ramp training, and already I despise how unintuitive it is to do things that are ...
JustCallmeSPED's user avatar
1 vote
0 answers
221 views

I have the handle of a StateFlow input from a previous find result. I'm trying to get the port number for that StateFlow input. I've been using the sf('get',[handle#],[field name]) command for ...
EricB's user avatar
  • 31
-1 votes
1 answer
65 views

Hi I am creating a hybrid automata model using Stateflow. I was wondering if it's is possible to add invariants to a state?
Addie's user avatar
  • 31
1 vote
1 answer
328 views

I am new with Modelica but I would like to build an easy state machine with 2 variables : The initial step is "off" (the variable Light_cabin==0) then if button_Evac == 1 (second variable) ...
Eloise's user avatar
  • 37
1 vote
1 answer
4k views

I have a Model with 2 charts created with code. My first chart is a test simulation which go to a TIMER EXPIRED state when TimerStatus = 1;. The error occurs with my timer chart : When I try to ...
Lucas's user avatar
  • 257
0 votes
1 answer
157 views

I am calling the simple CNN which classifies the MNIST images. The CNN internally calls loadMNISTImages() functions to read images from a file. When this CNN is connected to my simulink model. I am ...
surindersood's user avatar
0 votes
1 answer
114 views

The tlc can be saved as text file and has tracebilty. Is it possible to using tlc in stateflow design? Or Any other suggestion to keep the tracebilty feature in sateflow project?
Redefl's user avatar
  • 125
0 votes
3 answers
8k views

In the below two state charts , the first one has an action to perform when it moves from StateA to StateD , ie. /{z=5}; and the second one has to perform the action {z=5}; I understand that this is a ...
beastboy's user avatar
  • 169
0 votes
1 answer
661 views

I am trying to create a state machine (state flow). The input is a vector. The condition for a switch in one direction is: [vector(vector < 494 | vector > 631)] and for the other direction: [...
check's user avatar
  • 39
0 votes
1 answer
2k views

I'm looking for a way to use event-based temporal logic in Simulink Stateflow. Example: [State_1] --> [after(3,sec) && e] --> [State_2] Scenario: 0 sec: State_1 is active 2 sec: e is ...
WainR's user avatar
  • 21
0 votes
1 answer
242 views

I'm looking for a way to document the code and models created or generated by MATLAB (m-files) Simulink models (S-functions etc.) and Stateflow. In the last five years I was using Octave so I'm not ...
Medi1Saif's user avatar
  • 285
0 votes
1 answer
3k views

I have multiple signals which are In-ports to a subsystem with different datatypes.I am using State flow to develop a function where I have to use these in-ports and compare with some constants or ...
Priyanka's user avatar
  • 107
0 votes
1 answer
201 views

I have a pretty simple MATLAB stateflow model that I would like to visualize. I don't need anything fancy - even if I could just display a different image based on which substate a parallel state is ...
CoffeeDonut's user avatar
0 votes
1 answer
730 views

I implemented an integrator (grounded capacitor driven by piece-wise constant current source) using Stateflow and the 'after' condition. See code. With the given setting the capacitor should change ...
bardo's user avatar
  • 428
0 votes
0 answers
2k views

Design a counter that decrements and increments by 1 with rest option which means it rests to zero and starts the counting from one.this problem should be done using both simulink and stateflow.
Yo Yo's user avatar
  • 1
0 votes
1 answer
414 views

So what I'm trying to do is this: I have a simulink stateflow model. To display some stuff from this model I built a GUI. In this GUI I have a button that should set a flag to true when pressed, which ...
Vince's user avatar
  • 1,537
1 vote
1 answer
123 views

Is there a way to close (or hide) a Stateflow Editor programmatically? I could not find any hint about this in the documentation or the net. The only way I know of is to close the model entirely, but ...
walderich's user avatar
  • 646
1 vote
1 answer
603 views

I have a Simulink model and I would like to extract the location of the Stateflow blocks it contains. I am looking for a command inspired by this command that gives the total number of blocks. How ...
Karlo's user avatar
  • 1,708
1 vote
1 answer
3k views

I'm new to StateFlow and have been looking at StateFlow tutorials but have not seen one that processes vectors. My simulink model generates vectors of audio data for which I would like to process ...
Chuck Carlson's user avatar