Dynamic thresholds setting for relay

8 vues (au cours des 30 derniers jours)
sergio pernici
sergio pernici le 10 Nov 2015
Commenté : yilin li le 26 Jan 2018
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?

Réponses (2)

Leigh Boyd
Leigh Boyd le 1 Nov 2017
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)

Sebastian Castro
Sebastian Castro le 11 Nov 2015
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
  1 commentaire
yilin li
yilin li le 26 Jan 2018
This model works well! Thank you !!

Connectez-vous pour commenter.

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by