Hi,
I am using the Analog Discovery 2 to measure the frequency response of an LRA motor. The LRA motors have a resonant frequency and I wrote a C# application using the Waveforms SDK that uses the Wavegen to drive the motors over a range of frequencies around the resonant frequency to produce a graph of the amplitude response across the frequency range. A typical graph that I generate is attached.
Everytime I want to get a data point for a new frequency I call FDwfAnalogOutNodeFr
Hi @MaximJoey
You could use the FM custom signal to sweep in steps.
dwf.FDwfAnalogOutNodeEnableSet(hdwf, channel, AnalogOutNodeFM, c_bool(True))
dwf.FDwfAnalogOutNodeFunctionSet(hdwf, channel, AnalogOutNodeFM, funcCustom)
# FM waveform period 110 seconds, 10s for each of the 11 steps
dwf.FDwfAnalogOutNodeFrequencySet(hdwf, channel, AnalogOutNodeFM, c_double(1.0/110))
# FM will change the carrier frequency between -50% to +150%, for custom values in range of -1 and +1
dwf.FDwfAnalogOutN