Dynamic thresholds setting for relay

16 次查看(过去 30 天)
I need to have two different sets of the Up and Down thresholds for a relay. To solve the problem I use 2 relay blocks in parallel with different thresholds and I select the one I want with a switch according to a Boolean variable. A dynamic version of the relays would simplify the hardware. Is it already implemented anywhere?

回答(2 个)

Sebastian Castro
Sebastian Castro 2015-11-11
I don't think there's a built-in one, but you can make your own as shown below.
"on" and "off" are your outputs when on and off. Also, you need to set the initial condition of that "Memory" block to either "on" or "off" for it to work.
- Sebastian

Leigh Boyd
Leigh Boyd 2017-11-1
We solved this "Simulink has no dynamic relay" problem using an SR flip flop and two relational operators. if the input is greater than threshold one, we set the flip flop If it is less than threshold two, we reset it.
This way you can dynamically set the thresholds and thereby create a "dynamic relay" with explicit defined thresholds. The output will be boolean true and false. If you need other outputs, you can connect to a switch and take alternate values (like 1.0 and 0.0 for example)
The beauty of this solution is that you can also use switches to choose between various thresholds without needing to duplicate the relay logic itself, and the thresholds can be set independently (and continuously if desired)

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by