Bug: Correction File Saving for VNA Module

In my VNA module I always specify a calibration file. I expect that when saving my settings and re-opening the calibration file name is also restored such as other module settings like Frequency and Power. However this is not the case, the cal. file name is forgotten.

Is this a bug?

1 Like

Hi Markus, sounds like a bug and we should be possible to imitate it. Backlog item is created.

Can you open your setting file and check whether the calibration file path is saved there? This way we can narrow down the problem to either saving or loading the setting file.

Thanks and best,
Axel

Hello Axel, Here is the excerpt from my settings file:

*NetworkAnalyzer
Label:	ZNA
Device:	NetworkAnalyzer-RuS_ZNA
Port:	TCPIP::169.254.8.21::inst0::INSTR
Terminals:	1,2,3
ReduceTerminals:	False
Sparameters:	
SourcePower:	-10
SourceAttenuation:	0
IFBandwidth:	1000
Correction:	On
Average:	1
Trigger:	Internal
TriggerDelay:	0.0
FrequencyStart:	1e9
FrequencyEnd:	60e9
FrequencyStepPointsType:	Linear (points)
FrequencyStepPoints:	591
Display:	True
ConversionTouchstone:	True
Re:	False
Im:	False
PhaseDeg:	False
PhaseRad:	False
Magnitude:	False
Magnitude_dB:	True

So it seems the Calibration file name is not beeing saved at all.

1 Like

Thanks that already helps to identify the problem. Will report here when a solution is available.

1 Like

Hi Markus,
I tried to reproduce your issue, but was not able to do so.

I uses SweepMe! 1.5.7.5, NetworkAnalyzer module 2025-06-30 and the drivers NetworkAnalyzer-Keysight_E507x/NetworkAnalyzer-Keysight_PNA to select a calibration.

I was able to save and load the setting with restoring my calibration selection.

I couldn’t test all features as some calibration are retrieved from the instrument and I only tested those where a calibration file from the computer is selected.

Can you specify your version numbers?

As you are using a customer driver, I cannot say whether your driver maybe adds some strange behavior here. This would be the next to check.

Thanks and best, Axel

Hello Axel,
thank you for testing this! I can confirm that when using the Keysight_PNA driver the saving of the correction file works as intended.

However when using the officla R&S ZNL driver instead of my custom ZNA driver, saving the cal does not work. So I think there is something wrong.

I attach you a minimalist settings file. I have the same SweepMe! version as you.
test.set (6.3 KB)

Would be great if you help me find the root cause of this, I guess it is driver related.

Best,

Markus

1 Like

Hi Markus,
thanks for adding the setting. We will check whether the ZNL driver is doing something unwanted and come back to you.

Best, Axel

Hello Markus,

Thanks for providing an example setting. In your test.set file the calibration file seems to be saved correctly, see line 22: Calibration: test.cal
I was able to reproduce the error with the ZNL driver. A quick fix that worked for me was to remove the calibration parameter from the set_GUIparameter function.

Remove or comment line 104:

98 def set_GUIparameter(self) → dict:
[…]
104 “Calibration”: [“”],

In the meantime we will look into the underlying issues to see why the empty calibration overwrites the saved calibration.

Let me know if this solution works for you.

Best,
Franz

2 Likes

The bugfix is now included in the new driver version 2025-08-14 for NetworkAnalyzer-Rohde&Schwarz_ZNL, which is available for download via SweepMe!.

2 Likes