AnsweredAssumed Answered

A couple of Qs using SCPI code on the PNA E8363B

Question asked by CraigEwens on Jun 12, 2006
Latest reply on Jun 19, 2006 by CraigEwens
Hi,

As the title suggests i have a few questions regarding some code i'm writing to automate the PNA.

[list=1:20gnsk4s]
  • Source Power Cal
    I have written the below code to perform a source power calibration. It seems to work fine, except i recieve the following error upong trying to save the calibration.
    "
    +163, REQUESTED CAL SET WAS NOT FOUND IN CAL SET STORAGE.
    "

    Just a small snipet:
    Debug("----------------------------")
    Debug("PNA SOURCE POWER CALIBRATION")
    Debug("----------------------------")
    Debug("Config filename   "&TRIM$(Conf_filename$)))
    Debug("Config row ref    "&VAL$(Count)))
    Debug("Config mnemonic   "&TRIM$(Data$(1)))
    Debug("Source port       "&TRIM$(Data$(2)))
    Debug("Source offset     "&TRIM$(Data$(3)))
    Debug("Source tollerance "&TRIM$(Data$(4)))
    Debug("Num of readings   "&TRIM$(Data$(5)))
    Debug("PM HPIB address   "&TRIM$(Data$(6)))
    Debug("PM sensor         "&TRIM$(Data$(7)))
    Debug("PM tollerance     "&TRIM$(Data$(8)))
    Debug("PM num readings   "&TRIM$(Data$(9)))
    Debug("----------------------------")
    !
    Network(Na_no,":SYST:COMM:GPIB:PMET:ADDR "&Data$(6)&";")
    Network(Na_no,":SENS"&VAL$(Channel)&":CORR:INT OFF;")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR OFF;")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:TABL:LOSS OFF;")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:FCH OFF;")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:ITER:NTOL "&Data$(4)&";")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:ITER:COUN "&Data$(5)&";")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:AVER:NTOL "&Data$(8)&";")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:AVER:COUN "&Data$(9)&";")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:OFFS "&Data$(3)&" DB;")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:METH PMET;")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:"&Data$(7)&"SEN:SEL;")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:DISP ON;")
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:ACQ "&Data$(7)&"SEN;")
    WAIT 600
    Network(Na_no,":SOUR"&VAL$(Channel)&":POW"&Data$(2)&":CORR:COLL:SAVE;")
    Network(Na_no,":SENS"&VAL$(Channel)&":CORR:CSET:DESC '"&Cal_filename$&"';")
    Network(Na_no,":MMEM:STOR:CORR '"&LWC$(Pna_directory$&Cal_filename$)&"';")
    Network(Na_no,":MMEM:STOR:CST '"&LWC$(Pna_directory$&Cal_filename$)&"';")

    Can anyone suggest what this error is refering to or which steps i'm performing incorrectly?

  • VMC Calibration
    In the VMC Example code with the PNA help file it writes something similar to this showing how to start your VMC calibration.
    Network(Na_no,":CALC"&VAL$(Channel)&":PAR:DEL:ALL;")
    Network(Na_no,":DISP:WIND"&VAL$(Window)&":STAT ON;")
    Network(Na_no,":DISP:WIND"&VAL$(Window)&":ENAB ON;")
    Network(Na_no,":CALC"&VAL$(Channel)&":CUST:DEF 'test', 'FCA.VMCMeas';")
    Network(Na_no,":DISP:WIND"&VAL$(Window)&":TRAC"&VAL$(Trace)&":FEED 'test';")
    Network(Na_no,":CALC"&VAL$(Channel)&":PAR:SEL 'test';")

    Is it possible to initiate a VMC calibration without deleting all the other traces? Within my code i've already set up parameters which configure the INT/EXT Rx Switch and IF Bandwidth so would like to reuse the current trace, just convert it into a VMC measurement.


  • The Network(Na_no,"SCPI") is just a function which sends off the SCPI code to the instrument.

    Thank you very much for any assistance you can offer.

    [edit]Firmware rev: A.06.03.05 (18 May 2006)[/edit]  

    Outcomes