Trying to use Visual Studio to use the N9923A remotely. I need to take measurements at different frequencies and want to do the calibrations for each frequency all at once. Ideally, I would like to save the calibrations for each frequency and then access them again when taking measurements.
I saw online that this is capable for other Keysight analyzers using User Cal Sets. Is it possible for the N9923A? I tried following the code from the links listed below. I kept getting an error on the VNA that said the headers I was using for the Cal Sets were undefined.
Calibrating the Analyzer Using SCPI
If anyone has any insight on this issue, please let me know!
FieldFox (including N9923A) saves one network analyzer calset per saved state. This calset applies to NA type modes, including VVM and CAT modes.
Therefore, the method for achieving what you want is to perform instrument setup (including frequencies) and calibration, then save the instrument state. Then repeat the process for your other frequency ranges. Save each state to a different filename.
Then you can recall each state (which will recall the calset along with it) and make measurements at the frequency range corresponding to that saved state.
Note: The setup+cal and also the state recall processes may be performed via the GUI as well as SCPI.
Also Note: The saved states contain information for each analyzer mode (e.g. CAT, NA, ...) that has been activated/selected since instrument power-on. If you are creating a lot of states and are concerned about the size of the states, consider avoiding changing modes after power on when doing your state creation+cal process.