TRL Calibration Routine for a Waveguide WR-28 Standard

The following VEE programming example demonstrates how to configure TRL calibration automation routine for a waveguide WR-28 Standard.

NOTE: This document contains references to Agilent Technologies. Agilent's former Test and Measurement business has become Keysight Technologies. For more information, go to www.keysight.com.

Description of Example

A Keysight VEE Pro programming example for automation of a Keysight FieldFox R-Band waveguide calibration via a TRL method. Please refer to the following attachments:

NOTE: If this link does not open properly, right click and the click on "Open in new tab".

- Download VEE

- Download VEE Runtime (requires IO Libraries)

.

 

FieldFox R-Band Waveguide Calibration via VEE Program

Copy the text in the following shaded area to a Notepad file.

(saveFormat "7.0")

(date "Fri 03/Apr/2020 15:33:04 ")

(veerev "9.32.17710.0")

(platform "PC")

(execMode v6)

(prefExecMode v9)

(filterNAN 0)

(workspaceStackingOrder M)

(sysconfig

(iodevice "N9952A_FF"

(type TCPIP)

(channel 180)

(readTerm "\n")

(fs ",")

(eol "\n")

(multiField dataOnly)

(arrayFormat linear)

(timeout 5)

(byteOrder 0)

(ppAddr "TCPIP0::10.80.7.41::inst0::INSTR")

(model "")

(eoiEnabled 1)

(VISAddr "TCPIP0::10.80.7.41::inst0::INSTR")

(model ""

(standard 488)))

(iodevice "N9917A_FieldFox"

(type TCPIP)

(channel 180)

(readTerm "\n")

(fs ",")

(eol "\n")

(multiField dataOnly)

(arrayFormat block)

(timeout 20)

(byteOrder 0)

(ppAddr "TCPIP0::10.80.7.41::inst0::INSTR")

(model "")

(eoiEnabled 1)

(VISAddr "TCPIP0::10.80.7.41::inst0::INSTR")

(model ""

(standard 488))))

(SaveCF no)

(device 0 ROOTCONTEXT

(assemblyRefs

(assemblyRef 1

(displayName

"mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

)

(filename "C:\\WINDOWS\\Microsoft.NET\\Framework\\v1.1.4322\\mscorlib.dll"))

(selectedNamespaces ""))

(properties

(variableName Main)

(variableScope glob)

(trigMode deg)

(nextID 147)

(popupTitleText "Untitled")

(popupMoveable 1)

(deleteGlobals 0))

(deviceList

(device 49 IODEVICE

(properties

(name "N9917A_FieldFox ( @TCPIP0::10.80.7.41::inst0::INSTR)")

(variableScope cont)

(transactions 5 "WRITE TEXT \"*CLS\" EOL" "WRITE TEXT \"SYSTem:ERRor?\" EOL"

"READ TEXT errCheckStart STR" "WRITE TEXT \"*IDN?\" EOL" "READ TEXT whoAmI STR")

)

(interface

(output 1

(name "errCheckStart")

(optional yes))

(output 2

(name "whoAmI")

(optional yes)))

(implementation

(ioDevType 18)

(iopath "N9917A_FieldFox")))

(device 51 TEXTDISPLAY

(properties

(variableScope cont))

(interface

(input 1

(name "Data"))))

(device 52 TEXTDISPLAY

(properties

(variableScope cont))

(interface

(input 1

(name "Data"))))

(device 56 IODEVICE

(properties

(name "N9917A_FieldFox ( @TCPIP0::10.80.7.41::inst0::INSTR)")

(variableScope cont)

(transactions 2 "WRITE TEXT \"SYST:ERR?\" EOL" "READ TEXT errCheckStart STR"))

(interface

(output 1

(name "errCheckStart")

(optional yes)))

(implementation

(ioDevType 18)

(iopath "N9917A_FieldFox")))

(device 57 TEXTDISPLAY

(properties

(name "OpComplete")

(variableScope cont))

(interface

(input 1

(name "Data"))))

(device 106 IODEVICE

(properties

(name "N9917A_FieldFox ( @TCPIP0::10.80.7.41::inst0::INSTR)")

(variableScope cont)

(transactions 7

"WRITE TEXT \":SENSe:CORRection:COLLect:CKIT:LABel 1,\\\"R11644A\\\";*OPC?\" STR EOL"

"READ TEXT opComplete REAL64"

"WRITE TEXT \":SENSe:CORRection:COLLect:CKIT:LABel 2,\\\"R11644A\\\";*OPC?\" STR EOL"

"READ TEXT opComplete REAL64"

"WRITE TEXT \"CORRection:COLLect:METHod:TRL 1,2\" EOL"

"WRITE TEXT \":SENSe:CORRection:COLLect:CONNector 1,\\\"WR-28,1\\\"\" STR EOL"

"WRITE TEXT \":SENSe:CORRection:COLLect:CONNector 2,\\\"WR-28,1\\\"\" STR EOL"))

(interface

(output 1

(name "opComplete")

(optional yes)))

(implementation

(ioDevType 18)

(iopath "N9917A_FieldFox")))

(device 53 IODEVICE

(properties

(name "N9917A_FieldFox ( @TCPIP0::10.80.7.41::inst0::INSTR)")

(variableScope cont)

(transactions 5 "WRITE TEXT \"INSTrument:SELect \\\'NA\\\';*OPC?\" EOL"

"READ TEXT opComplete INT16" "WRITE TEXT \"SENSe:FREQuency:STARt 32E9\" EOL"

"WRITE TEXT \"SENSe:FREQuency:STOP 36E9\" EOL"

"WRITE TEXT \"SENSe:BWID 1000\" EOL"))

(interface

(output 1

(name "opComplete")

(optional yes)))

(implementation

(ioDevType 18)

(iopath "N9917A_FieldFox")))

(device 121 IODEVICE

(properties

(name "N9917A_FieldFox ( @TCPIP0::10.80.7.41::inst0::INSTR)")

(variableScope cont)

(transactions 2 "WRITE TEXT \"SENSe:CORRection:COLLect:GUIDed:SCOunt?\" EOL"

"READ TEXT numCalSteps STR"))

(interface

(output 1

(name "numCalSteps")

(optional yes)))

(implementation

(ioDevType 18)

(iopath "N9917A_FieldFox")))

(device 122 IODEVICE

(properties

(name "N9917A_FieldFox ( @TCPIP0::10.80.7.41::inst0::INSTR)")

(variableScope cont)

(transactions 2

"WRITE TEXT \"SENSe:CORRection:COLLect:GUIDed:STEP:PROMpt? \", calStepNum EOL"

"READ TEXT calStepDesc STR"))

(interface

(input 1

(name "calStepNum")

(optional yes))

(output 1

(name "calStepDesc")

(optional yes)))

(implementation

(ioDevType 18)

(iopath "N9917A_FieldFox")))

(device 126 FORRANGE

(properties

(variableScope cont)

(from 1)

(thru 4)

(step 1))

(interface

(input 1

(name "Thru")

(tag "Thru")

(requires

(datatype Real64)

(shape "Scalar"))

(lock constraints)

(optional yes)

(buffer YES))

(output 1

(name "Data")

(lock name constraints))))

(device 128 MESSAGEBOX

(properties

(variableScope cont)

(position 828 296)

(message "User Message")

(symbol Information))

(interface

(input 1

(name "Message")

(tag "Message")

(requires

(datatype Text))

(lock name constraints)

(optional yes)

(buffer YES))

(output 1

(name "OK")

(lock name constraints))

(output 2

(name "Cancel")

(lock name constraints)))

(implementation

(customButtons 0)

(displayMode 3)

(buttons "OK  Cancel")

(buttonLabel1 "OK")

(buttonLabel2 "Cancel")

(buttonLabel3 "")

(bdefault "OK")))

(device 129 IODEVICE

(properties

(name "N9917A_FieldFox ( @TCPIP0::10.80.7.41::inst0::INSTR)")

(variableScope cont)

(transactions 2

"WRITE TEXT \"SENSe:CORRection:COLLect:GUIDed:STEP:ACQuire \", calStandNum, \";*OPC?\" EOL"

"READ TEXT done STR"))

(interface

(input 1

(name "calStandNum")

(optional yes))

(output 1

(name "done")

(optional yes)))

(implementation

(ioDevType 18)

(iopath "N9917A_FieldFox")))

(device 130 COUNTER

(properties

(variableScope cont))

(interface

(input 1

(name "Data"))

(output 1

(name "Count"))))

(device 132 IODEVICE

(properties

(name "N9917A_FieldFox ( @TCPIP0::10.80.7.41::inst0::INSTR)")

(variableScope cont)

(transactions 2 "WRITE TEXT \"SENSe:CORRection:COLLect:SAVE 0;*OPC?\" EOL"

"READ TEXT done STR"))

(interface

(output 1

(name "done")

(optional yes)))

(implementation

(ioDevType 18)

(iopath "N9917A_FieldFox")))

(device 135 TEXTDISPLAY

(properties

(name "OpComplete")

(variableScope cont))

(interface

(input 1

(name "Data"))))

(device 136 TEXTDISPLAY

(properties

(name "OpComplete")

(variableScope cont))

(interface

(input 1

(name "Data"))))

(device 137 TEXTDISPLAY

(properties

(name "OpComplete")

(variableScope cont))

(interface

(input 1

(name "Data"))))

(device 138 NOTE

(properties

(variableScope cont)

(text2 1

"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\cf1\\f0\\fs24 Clear event status register and all potential errors in queue. \\par\r\nCheck error queue after clearing.\\par\r\nPerform instrument identification query.\\par\r\n}\r\n"

)))

(device 139 NOTE

(properties

(variableScope cont)

(text2 1

"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\cf1\\f0\\fs24 Select \"NA\" mode.\\par\r\nSet stimulus.\\par\r\n}\r\n"

)))

(device 140 NOTE

(properties

(variableScope cont)

(text2 1

"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\cf1\\f0\\fs24 Select R11644A\\par\r\nW/G cali kit + TRL Method.\\par\r\n\\par\r\nSelect R band connectors and impedance of 1.\\par\r\n}\r\n"

)))

(device 141 NOTE

(properties

(variableScope cont)

(text2 1

"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\cf1\\f0\\fs24 Query, \"How many steps for calibration\"?\\par\r\n}\r\n"

)))

(device 142 NOTE

(properties

(variableScope cont)

(text2 1

"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\cf1\\f0\\fs24 Loop user message prompts. Prompts are string indicators which advise which standard to connect. For an R-Band R11644A WR-28 the prompts and connections are:\\i\\fs23\\par\r\n    Connect Short to port 1\\i0  (Reflect or R in TRL\\i );\\par\r\n    Connect Short to port 2 \\i0 (Reflect or R in TRL);\\par\r\n\\i     Connect port 1 to port 2 \\i0 (Thru or T in TRL);\\i\\par\r\n    Connect R-Band Delay line between port 1 and port 2\\i0\\par\r\n    (Line or L in TRL);\\fs26\\par\r\n}\r\n"

)))

(device 143 NOTE

(properties

(variableScope cont)

(text2 1

"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\cf1\\f0\\fs24 For each step (in the calibration loop) query the connection prompt from the FieldFox.  \\par\r\n}\r\n"

)))

(device 144 NOTE

(properties

(variableScope cont)

(text2 1

"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\cf1\\f0\\fs24 Check error queue on program completion.\\par\r\n}\r\n"

)))

(device 145 NOTE

(properties

(variableScope cont)

(text2 1

"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\cf1\\f0\\fs24 Compute and apply error terms on completion of measurement of all cal kit standards.\\par\r\n\\par\r\n}\r\n"

)))

(device 146 NOTE

(properties

(variableScope cont)

(text2 1

"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\cf1\\f0\\fs24 Within loop, post user message prompts and assume connection of standard, acquire or measure each standard and utilize *OPC? as \'holdoff\' to ensure each individual standard has been fully acquired. \\par\r\nRepeat for each calibration kit standard acquisition.\\par\r\n}\r\n"

)))

(configuration

(connect D0:1 D1:1)

(connect D0:2 D2:1)

(connect D13:0 D3:0)

(connect D3:1 D4:1)

(connect D6:0 D5:0)

(connect D0:0 D6:0)

(connect D5:0 D7:0)

(connect D9:1 D8:1)

(connect D7:1 D9:1)

(connect D8:1 D10:1)

(connect D10:1 D11:0)

(connect D9:1 D11:1)

(connect D11:1 D12:1)

(connect D9:0 D13:0)

(connect D6:1 D14:1)

(connect D5:1 D15:1)

(connect D13:1 D16:1)))

(contextCarrier

(wndRestoredOrigin 2 2)

(wndRestoredExtent 702 385)

(wndState max)

(active detail)

(detail

(extent 1893 989)

(anchorPt -836 -235)

(configuration

(devCarrierFor 49

(active open)

(icon

(iconImage "io.icn"))

(open

(extent 314 116))

(terminals on)

(pinCenter 1310 370))

(devCarrierFor 51

(active open)

(icon)

(open

(extent 184 26))

(pinCenter 1770 340))

(devCarrierFor 52

(active open)

(icon)

(open

(extent 374 26))

(pinCenter 1770 400))

(devCarrierFor 56

(active open)

(icon

(iconImage "io.icn"))

(open

(extent 204 86))

(terminals on)

(pinCenter 1680 1150))

(devCarrierFor 57

(active open)

(icon

(extent 77 0))

(open

(extent 154 36))

(pinCenter 1990 1150))

(devCarrierFor 106

(active open)

(icon

(iconImage "io.icn"))

(open

(extent 554 156))

(terminals on)

(pinCenter 1310 700))

(devCarrierFor 53

(active open)

(icon

(iconImage "io.icn"))

(open

(extent 384 116))

(terminals on)

(pinCenter 1310 530))

(devCarrierFor 121

(active open)

(icon

(iconImage "io.icn"))

(open

(extent 414 86))

(terminals on)

(pinCenter 1310 880))

(devCarrierFor 122

(active open)

(icon

(iconImage "io.icn"))

(open

(extent 524 96))

(terminals on)

(pinCenter 2310 520))

(devCarrierFor 126

(active open)

(icon

(iconImage "loop.icn"))

(open

(extent 99 79))

(pinCenter 1710 880))

(devCarrierFor 128

(active icon)

(icon

(extent 81 25))

(open

(extent 223 134))

(terminals on)

(pinCenter 2010 730))

(devCarrierFor 129

(active open)

(icon

(iconImage "io.icn"))

(open

(extent 574 96))

(terminals on)

(pinCenter 2335 880))

(devCarrierFor 130

(active open)

(icon)

(open

(extent 84 31))

(pinCenter 2640 1010))

(devCarrierFor 132

(active open)

(icon

(iconImage "io.icn"))

(open

(extent 444 86))

(terminals on)

(pinCenter 1705 1010))

(devCarrierFor 135

(active open)

(icon

(extent 77 0))

(open

(extent 121 22))

(pinCenter 1770 530))

(devCarrierFor 136

(active open)

(icon

(extent 77 0))

(open

(extent 121 22))

(pinCenter 1770 700))

(devCarrierFor 137

(active open)

(icon

(extent 77 0))

(open

(extent 121 22))

(pinCenter 2050 1010))

(devCarrierFor 138

(active open)

(icon

(iconImage "notepad.icn"))

(open

(extent 254 106)

(editing enabled))

(pinCenter 980 360))

(devCarrierFor 139

(active open)

(icon

(iconImage "notepad.icn"))

(open

(extent 144 56)

(editing enabled))

(pinCenter 1000 510))

(devCarrierFor 140

(active open)

(icon

(iconImage "notepad.icn"))

(open

(extent 134 166)

(editing enabled))

(pinCenter 920 710))

(devCarrierFor 141

(active open)

(icon

(iconImage "notepad.icn"))

(open

(extent 164 66)

(editing enabled))

(pinCenter 980 870))

(devCarrierFor 142

(active open)

(icon

(iconImage "notepad.icn"))

(open

(extent 384 166)

(editing enabled))

(pinCenter 2530 710))

(devCarrierFor 143

(active open)

(icon

(iconImage "notepad.icn"))

(open

(extent 154 116)

(editing enabled))

(pinCenter 2580 380))

(devCarrierFor 144

(active open)

(icon

(iconImage "notepad.icn"))

(open

(extent 304 46)

(editing enabled))

(pinCenter 1380 1130))

(devCarrierFor 145

(active open)

(icon

(iconImage "notepad.icn"))

(open

(extent 334 56)

(editing enabled))

(pinCenter 1260 1000))

(devCarrierFor 146

(active open)

(icon

(iconImage "notepad.icn"))

(open

(extent 404 116)

(editing enabled))

(pinCenter 2370 1030))

(connect D0:1 D1:1

(points 2 1559 340 1675 340))

(connect D0:2 D2:1

(points 2 1559 400 1580 400))

(connect D13:0 D3:0

(points 2 1710 1055 1710 1086))

(connect D3:1 D4:1

(points 2 1874 1150 1910 1150))

(connect D6:0 D5:0

(points 2 1340 590 1340 601))

(connect D0:0 D6:0

(points 2 1340 430 1340 451))

(connect D5:0 D7:0

(points 2 1340 780 1340 816))

(connect D9:1 D8:1

(points 4 1762 880 1930 880 1930 520 1955 520))

(connect D7:1 D9:1

(points 2 1609 880 1658 880))

(connect D8:1 D10:1

(points 6 2664 520 2680 520 2680 590 1950 590 1950 730 1967 730))

(connect D10:1 D11:0

(points 3 2053 720 2310 720 2310 811))

(connect D9:1 D11:1

(points 2 1762 880 1955 880))

(connect D11:1 D12:1

(points 6 2664 880 2680 880 2680 950 2580 950 2580 1010 2595 1010))

(connect D9:0 D13:0

(points 2 1710 922 1710 946))

(connect D6:1 D14:1

(points 2 1594 530 1707 530))

(connect D5:1 D15:1

(points 2 1679 700 1707 700))

(connect D13:1 D16:1

(points 2 1969 1010 1987 1010)))

(stackingOrder 0 9 13 3 11 8 6 7 16 4 12 5 24 19 10 15 20 17 1 2 18 14 22 21 25

23))

(numberFormats

(realFormat standard)

(realSigDigits 4)

(realRadixSpec 4)

(integerBase decimal))))

 

R-Band Waveguide Calibration VEE Pro IO Libraries Commands (*.xml)

FieldFox_R-Band_WG_Cal_via_VEEPro-IOLibs_Command_Capture (Keysight IO Monitor log file as XML - Duplicate link from above)

 

R-Band Waveguide Calibration VEE Pro IO Libraries SCPI Commands

*CLS  
*IDN?  
INSTrument:SELect 'NA';*OPC?  
[SENSe]:FREQuency:STARt 32E9  
[SENSe]:FREQuency:STOP 36E9  
[SENSe]:BWID 1000  
[SENSe]:CORRection:COLLect:CKIT:LABel 1 R11644A;*OPC?
[SENSe]:CORRection:COLLect:CKIT:LABel 2 R11644A;*OPC?
[SENSse]:CORRection:COLLect:METHod:TRL 1

2

[SENSe]:CORRection:COLLect:CONNector 1 WR-28,1
[SENSe]:CORRection:COLLect:CONNector  2 WR-28,1
[SENSe]:CORRection:COLLect:GUIDed:SCOunt?  
[SENSe]:CORRection:COLLect:GUIDed:STEP:PROMpt? 1  
[SENSe]:CORRection:COLLect:GUIDed:STEP:ACQuire 1;*OPC?  
[SENSe]:CORRection:COLLect:GUIDed:STEP:PROMpt? 2  
[SENSe]:CORRection:COLLect:GUIDed:STEP:ACQuire 2;*OPC?  
[SENSe]:CORRection:COLLect:GUIDed:STEP:PROMpt? 3  
[SENSe]:CORRection:COLLect:GUIDed:STEP:ACQuire 3;*OPC?  
[SENSe]:CORRection:COLLect:GUIDed:STEP:PROMpt? 4  
[SENSe]:CORRection:COLLect:GUIDed:STEP:ACQuire 4;*OPC?  
[SENSe]:CORRection:COLLect:SAVE 0;*OPC?  
SYSTem:ERRor?  

 

Last Modified:

31may2023

Fixed table links - all

01dec2020

New topic (A.12.2x)