Adjustable Duty-Cycle and Time Period

1 view (last 30 days)
Valentin
Valentin on 6 Jun 2013
Hello Mathworks Community,
I want to simulate a control opening and closing a gate. To do this I want to operate an engine using a Duty Cycle for Input control. Its operated through a variable period AND a variable Duty Cycle. So for example you want to open the gate for 50 seconds the settings combination is Period=200s and Duty-Cycle=25%.
This should be adjustable during the runtime. So during runtime I can change the signal of the Period and the Duty Cycle.
To change the duty cycle during runtime I found this very complicated solution: http://www.mathworks.de/support/solutions/en/data/1-30XY8N/index.html?product=CB&solution=1-30XY8N
But ok it works.
But I couldn't get the variable period to work with this solution.
As Input there is two variables DC = [0..100] and Period = [100:600,100].
Does somebody have a solution or a hint how I can implement this? Thanks in advance.
Valentin

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!