AnsweredAssumed Answered

Reading Phase and Amplitude with GPIB

Question asked by wbh04430 on Jan 16, 2009
Latest reply on Jan 16, 2009 by Dr_joel
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  

Outcomes