where setFreqHz is a MATLAB double defining the frequency in Hz.
Since the AWG frequency resolution is < 20mHz (see device specs), the set value setFreqHz is rounded to the nearest available frequency, which I call "actual frequency". Since I am working with frequencies in the range of 1Hz - 10Hz, 20mHz represents a non-negligible difference from the desired set frequency.
My simple question is now: How do I get the AWG actual frequency in MATLAB?
The MATLAB Instrument Driver unfortunately does not report back the actual frequency being output (there isn't a function to do this in the shared library).
However, it should be possible to calculate this using the formula in the delta phase in the Programmer's Guide (see section 4.57.2 Calculating deltaPhase).
Please note that there is a freq2delta() function in the PicoScope Support Toolbox that you can use to calculate this. The delta phase is an integer value that you can then use to calculate the actual frequency. Try rounding the delta phase down to the nearest integer integer and calculate the frequency. You can then try capturing an output of your signal from the AWG, calculate the frequency and compare it against the first calculation.