Variable Frequency Ruining Signal in Simulink
I have a Simulink model. In some conditions i need to increase/decrease the frequency of the system by using ramps. Im using a Rate limiter to achieve this. Although when i try to change the frequency, actual frequency of signal gets more faster than my input. After frequency meets the desired level (when rate limiter gives constant value) signal turns to normal. I prepared an example to show my problem visually:
Here i used an sin block and changed its frequency from 1 to 2 (sec. 15). Slew rate of the Rate Limiter is set to 1. This is the scope:
Signal turns to normal frequency after about 6 seconds.This problem may be about solver options. My simulation operates on ode1 solver with 1e-4 step size. Is there any way to overcome this problem preferably without changing the step size ?I have a Simulink model. In some conditions i need to increase/decrease the frequency of the system by using ramps. Im using a Rate limiter to achieve this. Although when i try to change the frequency, actual frequency of signal gets more faster than my input. After frequency meets the desired level (when rate limiter gives constant value) signal turns to normal. I prepared an example to show my problem visually:
Here i used an sin block and changed its frequency from 1 to 2 (sec. 15). Slew rate of the Rate Limiter is set to 1. This is the scope:
Signal turns to normal frequency after about 6 seconds.This problem may be about solver options. My simulation operates on ode1 solver with 1e-4 step size. Is there any way to overcome this problem preferably without changing the step size ? I have a Simulink model. In some conditions i need to increase/decrease the frequency of the system by using ramps. Im using a Rate limiter to achieve this. Although when i try to change the frequency, actual frequency of signal gets more faster than my input. After frequency meets the desired level (when rate limiter gives constant value) signal turns to normal. I prepared an example to show my problem visually:
Here i used an sin block and changed its frequency from 1 to 2 (sec. 15). Slew rate of the Rate Limiter is set to 1. This is the scope:
Signal turns to normal frequency after about 6 seconds.This problem may be about solver options. My simulation operates on ode1 solver with 1e-4 step size. Is there any way to overcome this problem preferably without changing the step size ? variable, signal processing, frequency, simulink MATLAB Answers — New Questions