Permanent signal from one-time input

12 vues (au cours des 30 derniers jours)
Linus
Linus le 30 Juin 2021
Réponse apportée : Linus le 1 Juil 2021
Hi,
I am looking for a way to turn a one-time input into a permanent signal. Every solution I can think of would include a feedback loop which Simulink won't accept.
Any ideas?

Réponse acceptée

Linus
Linus le 1 Juil 2021
It turns out I'm just really dense. I solved my problem by just using an integrator and put a Compare-To-Zero (==) at the output. This way, any one-time nonzero input to the integrator, no matter how small the timestep, will result in a Boolean 1 as a permanent output signal.
An obvious solution but maybe someone will have the same issue.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by