EasyManua.ls Logo

Agilent Technologies E5071C - Page 1046

Agilent Technologies E5071C
2685 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming
1273
Call viOpen(defrm, "GPIB0::17::INSTR", 0, 0, vi) 'Opens the session to the
specified instrument.
Call viSetAttribute(vi, VI_ATTR_TMO_VALUE, TimeOutTime) 'The state of an attribute
for the specified session.
Call viVPrintf(vi, ":SYST:PRES" & vbLf, 0) 'Presets the setting state of the ENA.
Call viVPrintf(vi, "*CLS" & vbLf, 0) 'Clears the all status register.
Call viVPrintf(vi, ":SENS1:FREQ:STOP " & stop_freq & vbLf, 0) 'Sets the sweep stop
frequency.
Call viVPrintf(vi, ":SENS1:SWE:POIN " & Nop & vbLf, 0) 'Sets the number of points.
Call viVPrintf(vi, ":CALC1:TRAN:TIME:LPFR" & vbLf, 0) 'Sets a measurement point.
Call viVPrintf(vi, ":CALC1:PAR1:DEF " & Para & vbLf, 0) 'Sets the measurement
parameter.
Call viVPrintf(vi, ":TRIG:SOUR BUS" & vbLf, 0) 'Sets the trigger source to BUS.
Call ErrorCheck(vi) 'Checking the error.
MsgBox "Connect Port1 to Ecal Module. Then click OK button.", vbOKOnly 'Display the message
box.
Call viVPrintf(vi, ":SENS1:CORR:COLL:ECAL:SOLT1 1" & vbLf, 0) 'Execute the 1-port
calibration.
Call viVPrintf(vi, "*OPC?" & vbLf, 0) 'Sets the *OPC? command.
Call viVScanf(vi, "%t", Result) 'Reads the *OPC? result.
Call ErrorCheck(vi) 'Checking the error.
MsgBox "Set DUT. Then click OK button.", vbOKOnly 'Display the message box.
Call viVPrintf(vi, ":TRIG:SING" & vbLf, 0) 'Execute the trigger.
Call viVPrintf(vi, "*OPC?" & vbLf, 0) 'Sets the *OPC? command.
Call viVScanf(vi, "%t", Result) 'Reads the *OPC? result.
Call viVPrintf(vi, ":DISP:WIND1:TRAC1:Y:AUTO" & vbLf, 0) 'Execute auto scale.
MsgBox "Click OK button. < Time Domain Transform >", vbOKOnly 'Display the message
box.
Call viVPrintf(vi, ":CALC1:TRAN:TIME " & Tran_Type & vbLf, 0) 'Sets the transformation
type.

Table of Contents