How do I initialize a signal in Simulink once the required condition is met?
My system is as shown where I read an input from a displacement sensor. If the input is more than absolute 0.5, I want the system to output the signal present in the signal builder. I am currently trying to use an enabled subsystem to ensure that the voltage output only happens if the condition becomes true. However, the output signal does not start from T=0, it starts from whatever time has elapsed since the start of the simulation (e.g., if the condition was first met at T = 10 s, it outputs the signal from its intermediate value at T = 10 s]. How should I set the system up such that the output signal starts from its initial point when the condition becomes true?