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

#7540
ZeRider
Participant

    Hi, I think you could try to connect directly your device to PC through USB.

    DIM Cmd$[80],Response$[1024]
    !
    Isc=13 ! Free Interface Select Code
    Devname$=”USBInstrument1″ ! Your Instrument Find in AGILENT Connection Expert / USB Interface
    ON ERROR GOSUB Erreur
    LOAD BIN “USBS;DEV “&Devname$&” ISC “&VAL$(Isc)&” TIME 10″
    !
    Identity: Response$=””
    Cmd$=”*IDN?”
    OUTPUT Isc;Cmd$
    ENTER Isc;Response$
    !
    PRINT Response$
    GOTO Exit
    !
    Erreur: OFF ERROR
    ERROR RETURN
    !
    Exit: END

    Scroll to Top
    HTB icon

    Please Sign In