Function generator component?
Posted: Thu Jun 16, 2011 10:40 am
Any plans for a function generator component?
I am trying to simulate a PIC that is comparing two analogue inputs measuring the amplitude and phase of a square wave against a sine wave of same frequency. It is very difficult to simulate this by moving the sliders on 2 analogue inputs unless done at really slow clock speed. Can you think of a better/faster way to do it? All I can think of is to write some Flowcode that generates the waves but then it is difficult to vary its amplitude and phase on the fly unless I use the analogue inputs to inject variability. But all this code has to be removed again before transferring it to the PIC.
A function generator component that output two or more waveforms of set frequency (linked to the simulation frequency), phase and amplitude would be good. Sine, square and other waveforms are useful. Frequency, etc. needs to be alterable on the fly during simulation.
I am trying to simulate a PIC that is comparing two analogue inputs measuring the amplitude and phase of a square wave against a sine wave of same frequency. It is very difficult to simulate this by moving the sliders on 2 analogue inputs unless done at really slow clock speed. Can you think of a better/faster way to do it? All I can think of is to write some Flowcode that generates the waves but then it is difficult to vary its amplitude and phase on the fly unless I use the analogue inputs to inject variability. But all this code has to be removed again before transferring it to the PIC.
A function generator component that output two or more waveforms of set frequency (linked to the simulation frequency), phase and amplitude would be good. Sine, square and other waveforms are useful. Frequency, etc. needs to be alterable on the fly during simulation.