At least with mine, I am able to just copy the original license back into the PNA and it's resorted.
I've been playing a bit more with the receiver alignment and reading what I am able to find. Looking at the service guide for the N5221A, they use the power meter to measure the cable loss. They don't mention measuring the power from port 2. What's interesting about this is the data you both supplied, the second file has a slight loss.
I had tried to run the alignment without the power meter and monitoring the signal from PORT1. It seems to suggest that the run it at 0dB. They do call the mxcal files, mixer calibration. It would make some sense if they are using R1 as part of this measurement, we would see the 6dBish loss.
I wrote simple program to parse the ASCII characters from the alignment software. I further filtered the data by showing only characters with adjacent ASCII characters (see attached).
Attach one end of cable to Port Then attach )IJ(Rx sensor to other end of the cable. Use adapter if necessary.Please wait...measuring cable loss valuesAttach the sensor to the end of the cable
*************
Receiver Adjustment
The receiver calibration is used to adjust the network analyzer receivers for a flat response across its full frequency range:
1. A power meter/sensor is connected to Port 1, as shown in Figure 3-16, to establish a reference for flatness.
2. A cable is inserted between the power sensor and the test port, as shown in Figure 3-17, to establish a reference for the cable.
3. The same cable is connected between test port 1 and test port 2, as shown in Figure 3-18, and a signal from Port 1 is used to adjust the “B” receiver at Port 2.
The adjustment is repeated using a signal from Port 2 to adjust the “A” receiver at Port 1.
Data obtained during this adjustment are stored in the mxcalfile_pxx files inflash memory on the test set motherboard, with a backup copy stored on the hard disk drive. The data are used in subsequent measurements.
********