Programming modern SCPI equipment over the USB port

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7479
    K9VMY
    Participant

    I just purchased a Siglent SVA1032X Vector Network Analyzer and would like to be able to program it using HTbasic 10.1 that I purchased.

    I know how to load the USBS Driver, and set the GPIB address in the unit.

    Can anyone provide a simple program code example for setting the SPAN or CENTER FREQuency of this or any similar device?

    Thank you

    #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

    #7533
    K9VMY
    Participant

    Thank you for the example.
    I see that your program uses a GPIB Controller (7) plugged into the USB port. Obviously, the E8990A is set to 17.
    I have 2 Agilent 82357B GPIB Interface for my PC and a Siglent USB-GPIB Adapter which has a USB-A connector and a female GPIB connector. Unfortunatly, I cannot plug either into the USB-B GPIB port on the instrument.

    The other option would be to use the USB-A to USB-B cable to the instrument, but I don’t know what address to use for the Analyzer= line in your code? Would it be Analyzer=17? since there is no Adapter?

    Again, many thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Scroll to Top
HTB icon

Please Sign In