Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

taking value of variable after some periods, or after few zero crossing

1 vue (au cours des 30 derniers jours)
nikola simanic
nikola simanic le 4 Mai 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hello everyone. I need help with some relay experiment for process identification, i.e to make appropriate scheme in Simulink. I have to put a relay in front of process, and process should start to oscillate(system with negative feedback). After two or three periods of oscillations, I have to find a frequency of oscillations w. Then, I have to "turn off" relay, and continue activation of process with sine wave sin(w*t), w is a frequency which is determined earlier. After few periods I should find new frequency w2 and lead that value to block sin(w*t), and so on until frequency show certain convergence. Every help is welcome. I know how to find frequency, i.e. how to make a scheme which calculates frequency all time. I know how to do it manually with sine wave generator, but it is not problem. All process should be automatic and my main problem is how to take value of that frequency after some periods of time, or after few cycling periods, few zero crossing of process or relay etc. Thank you in advance for any help.

Réponses (1)

Purushottama Rao
Purushottama Rao le 4 Mai 2015
As i understood from your problem decsription, basically you require a frequency divider. Pls find the attachement for a simple freq divider ( even for varibale frequency application).
Create a counter whih counts for every zero crossing of the plant process.Compare the counter with a required value to again adjuts the frequency and make the counter value zero to make it ready for next iteration

Cette question est clôturée.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by