Just in case anyone is interested. Below is the code for the PNA to read the contents of the a Touchstone file from the PNA using the "CALC:DATA:SnP?" query using Matlab. It then puts each value returned into the column of a matrix. Matlab's Instrument Control Toolbox is required for this code to run.