I am trying to use PLECS to generate one of two switching frequencies using a voltage controlled oscillator and an external control signal which has values of 0 or 1. When the signal is 0, I want to generate a low frequency, and when the signal rises to 1 I want to generate a higher frequency.
In an implementation in PLECS (shown) I generate the low frequency fine, but don't understand how I can generate the high frequency. This is because even when the control input changes from 0 to 1 the frequency of the carrier stays at the low frequency and does not change.
Any advice appreciated on how to do this. Waveforms are also attached which show the issue. It makes sense to me that when the signal is 0, the low frequency should be output, and when a 1 the higher frequency. However I think I misunderstand how the VCO is working (?)
In an implementation in PLECS (shown) I generate the low frequency fine, but don't understand how I can generate the high frequency. This is because even when the control input changes from 0 to 1 the frequency of the carrier stays at the low frequency and does not change.
Any advice appreciated on how to do this. Waveforms are also attached which show the issue. It makes sense to me that when the signal is 0, the low frequency should be output, and when a 1 the higher frequency. However I think I misunderstand how the VCO is working (?)
Attachments
-
84.4 KB Views: 15
-
29 KB Views: 14