Hi,

I'm trying to transfer Phase and MLog data from a PNA to an computer using GPIB. I'm using the following sequence:

IecSend(16,'system:fpreset'#10);

IecSend(16,'calculate1:Parameter:define ''my'',S12'#10);

IecSend(16,'display:window1:state on'#10);

IecSend(16,'calculate:parameter:select ''my'''#10);

IecSend(16,'calculate:format phase'#10);

IecSend(16,'initiate:continuous off'#10);

IecSend(16,'sense1:average:state on'#10);

IecSend(16,'sense1:average:count 5'#10);

IecSend(16,'sense1:bandwidth:resolution 10'#10);

IecSend(16,'sense1:sweep:type Logarithmic'#10);

IecSend(16,'sense1:frequency:start 7000000000'#10);

IecSend(16,'sense1:frequency:stop 12500000000'#10);

IecSend(16,'sense1:sweep:points 11'#10);

IecSend(16,'Display:window1:trace1:feed ''my'''#10);

IecSend(16,'initiate:immediate;*wai'#10);

IecSend(16,'CALCulate:DATA? FDATA'#10);

IecEnter(16,220,ts2);

Everything works, PNA sets frequency IFM Bandwith ...., but it doesn't switch to the Phase format but is always sending MLog values. There are no errors in the GPIB LOG window. What I'm I doing wrong?

Thanks

Johannes

I'm trying to transfer Phase and MLog data from a PNA to an computer using GPIB. I'm using the following sequence:

IecSend(16,'system:fpreset'#10);

IecSend(16,'calculate1:Parameter:define ''my'',S12'#10);

IecSend(16,'display:window1:state on'#10);

IecSend(16,'calculate:parameter:select ''my'''#10);

IecSend(16,'calculate:format phase'#10);

IecSend(16,'initiate:continuous off'#10);

IecSend(16,'sense1:average:state on'#10);

IecSend(16,'sense1:average:count 5'#10);

IecSend(16,'sense1:bandwidth:resolution 10'#10);

IecSend(16,'sense1:sweep:type Logarithmic'#10);

IecSend(16,'sense1:frequency:start 7000000000'#10);

IecSend(16,'sense1:frequency:stop 12500000000'#10);

IecSend(16,'sense1:sweep:points 11'#10);

IecSend(16,'Display:window1:trace1:feed ''my'''#10);

IecSend(16,'initiate:immediate;*wai'#10);

IecSend(16,'CALCulate:DATA? FDATA'#10);

IecEnter(16,220,ts2);

Everything works, PNA sets frequency IFM Bandwith ...., but it doesn't switch to the Phase format but is always sending MLog values. There are no errors in the GPIB LOG window. What I'm I doing wrong?

Thanks

Johannes

IecSend(16,'Display:window1:trace1:feed ''my'''#10);

IecSend(16,'calculate:format phase'#10);