I programmed a PDW generator in MATLAB to generate a PDW file for a N5193A UXG. I just can't figure out how to generate the 'Relative Power' field. The PDW Definitions page mentions a MATLAB function 'convertRelPow' but I can't find any mention of that function outside of that page. I assume you enter a voltage ratio and it spits out the exponent and mantissa in binary.
Function has been posted to PDW Definitions.