EasyManuals Logo

Anritsu Site Master S331L Scpi Programming Manual

Anritsu Site Master S331L
96 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #75 background imageLoading...
Page #75 background image
Appendix A — Examples A-3 Visual Basic
S331L PM PN: 10580-00322 Rev. F A-9
MsgBox "Connect load at port 1"
sInputString = ":SENSe:CORRection:COLLect:LOAD"
stat = viWrite(sesn, sInputString, Len(sInputString), retCount)
Do
Sleep (200)
'wait load measurement to complete and returns 1
sInputString = ":SENSe:CORRection:COLLect:STATus? LOAD"
stat = viWrite(sesn, sInputString, Len(sInputString), retCount)
stat = viRead(sesn, Buffer, MAX_CNT, retCount)
Loop Until Val(Buffer) = 1
'Save and apply calibration
sInputString = ":SENS:CORR:COLL:SAV"
stat = viWrite(sesn, sInputString, Len(sInputString), retCount)
'Wait for previous operation to be completed
sInputString = "*OPC?"
stat = viWrite(sesn, sInputString, Len(sInputString), retCount)
Buffer = ""
stat = viRead(sesn, Buffer, MAX_CNT, retCount)
'read back the the cal type (i.e. Buffer = 1, RFP1 or one-port
calibration)
sInputString = ":SENS:CAL:STAT?"
stat = viWrite(sesn, sInputString, Len(sInputString), retCount)
Buffer = ""
stat = viRead(sesn, Buffer, MAX_CNT, retCount)
Rem Close down the system
stat = viClose(sesn)
stat = viClose(dfltRM)
End Sub

Table of Contents

Other manuals for Anritsu Site Master S331L

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Anritsu Site Master S331L and is the answer not in the manual?

Anritsu Site Master S331L Specifications

General IconGeneral
BrandAnritsu
ModelSite Master S331L
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals