E5071C
1304
Port3 = "R2" 'Port3 = R2
Port4 = "R2" 'Port4 = R2
Line1 = "1" 'Line1 = High
Line2 = "0" 'Line2 = Low
Line3 = "1" 'Line3 = High
Line4 = "0" 'Line4 = Low
Line5 = "0" 'Line5 = Low
Line6 = "0" 'Line6 = Low
Line7 = "0" 'Line7 = Low
Line8 = "0" 'Line8 = Low
Call viOpenDefaultRM(defrm) 'Initializes the VISA system.
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, "*RST" & vbLf, 0) 'Presets the setting state of the ENA.
Call viVPrintf(vi, "*CLS" & vbLf, 0) 'Clears the all status register.
Call viVPrintf(vi, ":SENS1:MULT1:NAME " & Model & vbLf, 0) 'Specifies the test set
name.
Call viVPrintf(vi, ":SENS:MULT:PORT1 " & Port1 & vbLf, 0) 'Sets the port assigned to port 1
to A
Call viVPrintf(vi, ":SENS:MULT:PORT2 " & Port2 & vbLf, 0) 'Sets the port assigned to port 2
to T2
Call viVPrintf(vi, ":SENS:MULT:PORT3 " & Port3 & vbLf, 0) 'Sets the port assigned to port 3
to R2
Call viVPrintf(vi, ":SENS:MULT:PORT4 " & Port4 & vbLf, 0) 'Sets the port assigned to port 4
to R2
Call ErrorCheck(vi) 'Checking the error.
Data_Bin = Line8 & Line7 & Line6 & Line5 & Line4 & Line3 & Line2 & Line1
For i = 1 To Len(Data_Bin) 'Creates a decimal setting value.
If Mid(Data_Bin, Len(Data_Bin) - i + 1, 1) = "1" Then