1

I would like to simulate the following scenario with Simulink/Matlab(/Stateflow): A random number generator is running. Every 10 seconds the numbers that were generated during the last 10 seconds are added up. If the sum is greater than 50 the system is put into an unsafe state (simply a variable 'state' that initially is zero and then gets changed to one). Otherwise (sum <= 50), the state remains unchanged.

My problem is how to implement the 'parallelism' of keeping the random number generation going while analysing the generated data in the background. Any hints of how to do this are greatly appreciated!

This is how I would like the simulation to somehow look: enter image description here

ec-m
  • 111
  • 2

0 Answers0