how to set initial signal out from relay simulink
4 Comments
To set the initial output of a relay block in Simulink to be on (1), you can utilize a combination of a Memory block and a Switch block. Please see steps below to achieve your desired goal.
Place a Memory block before the relay block. This block will hold the initial state of the signal.
For more information on memory block, please refer to
https://www.mathworks.com/help/simulink/slref/memory.html
Then, connect a Switch block to determine the initial condition. The Switch block can take two inputs: one for the initial state (1) and another for the relay output. For more information on switch block, please refer to
Afterwards, configure the Switch block to output 1 when your specific condition is met (e.g., a certain input signal or a constant value). Otherwise, it will pass the output from the relay block. Make sure that the output of the relay block is connected to the second input of the Switch block. By implementing this method, you can control the initial output state of the relay block effectively. Let me know if this resolves your issue.
Accepted Answer
More Answers (1)
1 vote
To set the initial output of a relay block in Simulink to be on (1), you can utilize a combination of a Memory block and a Switch block. Please see steps below to achieve your desired goal.
Place a Memory block before the relay block. This block will hold the initial state of the signal.
For more information on memory block, please refer to
https://www.mathworks.com/help/simulink/slref/memory.html
Then, connect a Switch block to determine the initial condition. The Switch block can take two inputs: one for the initial state (1) and another for the relay output. For more information on switch block, please refer to
Afterwards, configure the Switch block to output 1 when your specific condition is met (e.g., a certain input signal or a constant value). Otherwise, it will pass the output from the relay block. Make sure that the output of the relay block is connected to the second input of the Switch block. By implementing this method, you can control the initial output state of the relay block effectively. Let me know if this resolves your issue.
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!