I am developing an application to test hardware components my colleague designed.
My application can read signal streams from the hardware and log the data in a file. Additionally, I can command the hardware to perform a frequency sweep on one of its input signals. Thus, I have the ability to log an input signal's frequency sweep as well as a corresponding output signal.
I can then do two things with the file:
- Read the log file and play back the signals on a strip chart. I have low-pass filters selectable to reduce noise on the raw data, if necessary.
- Read the log file of a frequency-swept signal, perform a transfer function on two selected signals, and plot the resulting data on a magnitude-v-freq, and a phase-v-freq log-scaled graph, aka Bode plots.
My issue is that my Bode plots are sometimes noisy, and I don't know how I should go about cleaning them up.
Here is an example:
![bode.png bode.png]()
I know the frequency-swept input signal was noisy itself, so I thought to run it through a low-pass filter before plotting, but it did not appear to make any change.
I've also seen all the CVI curve-fitting options, but I'm not knowledgeable in whether or not these would make any sense, especially for the phase-v-freq graph, as its shape is indeterminate.
Can anybody nudge me in the correct direction? I'm sure there's information I am not providing as well.