Home Forums HTBasic Forum Programming modern SCPI equipment over the USB port Reply To: Programming modern SCPI equipment over the USB port

#7532
ZeRider
Participant

    Hi,
    I think you can download programming manual here : https://www.siglenteu.com/resources/documents/spectrum-analyzers/
    For example in this document “ProgrammingGuide_PG0703P_E02A.pdf” you will found SCPI commands overview and some programming example at the end.
    As I see, it’s seem very similar to KEYSIGHT programming.
    Please find some lines extract of my dedicated E4990A Analyzer HTBasic code
    Hope that could help …

    !——————————————————————
    ! ANALYZER KEYSIGHT E4990A
    !——————————————————————
    Analyzer=717
    !
    Fstart=1000 ! KHz
    Fstop=20000 ! KHz
    Fstep=50 ! KHz
    Npoint=((Fstop-Fstart)/Fstep)+1! #
    Average=256 ! #
    !
    OUTPUT Analyzer;”*CLS” ! Interface Device CLEAR
    OUTPUT Analyzer;”:SYST:PRES” ! Initial Setup
    !
    !—————————–
    ! SETUP CHANNEL1
    !—————————–
    OUTPUT Analyzer;”:DISP:WIND1:TRAC1:Y:SPAC LIN” ! Set Y-Axis at LIN Format
    OUTPUT Analyzer;”:DISP:WIND1:TRAC2:Y:SPAC LIN” ! Set Y-Axis at LIN Format
    !
    OUTPUT Analyzer;”:DISP:WIND1:TRAC1:STAT ON” !
    OUTPUT Analyzer;”:DISP:WIND1:TRAC2:STAT ON” !
    OUTPUT Analyzer;”:DISP:WIND1:TITL OFF” !
    OUTPUT Analyzer;”:DISP:WIND1:LAB ON” ! Axle Labels
    !
    OUTPUT Analyzer;”:CALC1:PAR1:DEF Z” ! Set Measurement parameter Trace1 : |Z|
    OUTPUT Analyzer;”:CALC1:PAR2:DEF TZ” ! Trace2 : Phi
    !
    OUTPUT Analyzer;”:CALC1:PAR:COUN 2″ ! Nb of Trace = 2
    !
    !—————————–
    ! SETUP STIMULUS1
    !—————————–
    OUTPUT Analyzer;”:SENS1:SWE:POIN “&VAL$(Npoint) ! Set Number of Points
    OUTPUT Analyzer;”:SENS1:FREQ:STAR “&VAL$(Fstart)! Set START Frequency
    OUTPUT Analyzer;”:SENS1:FREQ:STOP “&VAL$(Fstop) ! Set STOP Frequency

    OUTPUT Analyzer;”:SENS1:SWE:TYPE LIN” ! Set SWEEP Type at LIN
    OUTPUT Analyzer;”:SENS1:AVER:COUN “&VAL$(Avg) ! Average
    OUTPUT Analyzer;”:SENS1:AVER:STAT OFF”
    OUTPUT Analyzer;”:SENS1:APER 1″ ! Measurement Time FAST
    !
    OUTPUT Analyzer;”:SOUR1:MODE VOLT” ! Set OSC Mode
    OUTPUT Analyzer;”:SOUR1:VOLT 750E-3″ ! Set OSC Level
    OUTPUT Analyzer;”:SOUR1:ALC OFF” ! Turn OFF ALC
    !
    OUTPUT Analyzer;”:CALC1:AVER:COUN “&VAL$(Avg) !
    OUTPUT Analyzer;”:CALC1:AVER:STAT ON” !
    OUTPUT Analyzer;”:CALC1:AVER:CLE” !
    !
    END

    Scroll to Top
    HTB icon

    Please Sign In