Solution
The common-mode offset on the 5820 is a property of the hardware state, meaning that the NI-RFSG driver will leave the common-mode voltage configured to the user desired setting even after aborting the generation or closing the instrument session. When you stop the generation by calling the niRFSG Abort function, the driver will tell the device to generate 0's, but the hardware is left committed to the requested state.
The reason for this is because '0' does not mean 0 V in a connection with common-mode voltage. For example, if a user is generating a ±1 V sine tone with a 1 V common-mode offset voltage, the signal changes from 0 V to 2 V. On abort, the device will output a constant 1 V which is the same as a ±0 V sine tone with a 1 V common-mode offset.
In order to remove the offset, you will need to either call
niRFSG Reset or explicitly set the
common-mode offset property to 0.0 V. You can also call
niRFSG Commit if you would like to only commit the correct settings to the hardware without starting the generation.