Great, in code generation, delay block create a for-loop, this blocks the main loop in the microcontroller, the solution is stateflow or RTOS. Thanks. In this example, you delay the input signal in 1 Ts, if you wanted to delay more sample times, you should use a for-loop scheme. Likewise, those schemes in stateflow do not generate locks in the main program when generating code, since they do not code in for-loop statements.
in t = o transition i didnt understood why you have written out = old_in..here you are outputting 2 times..data store read block delays its signam automatically?i am not clear about this topic
that was a mistake in the video: "out = old_in;" must be deleted. Because of this bug, initial value is being zero just because initial memory value is zero. But if you change the constant value to, let's say, the value 2, so the initial value in the scope will continue being zero, what is wrong (should be 2 in this example). When this "out = old_in;" is deleted, then this bug is solved.
+Mytheen Muhammed hi... Thanks for raising the concern. I checked. Sorry for inconvenience. You need to add one more chart and provide old chart o/p as I/p to second chart.