├── autocal ├── cal_functions.py ├── calibrate_example.py └── commands │ ├── SENS_CORR_COLL_AUTO_ASS_ACQ.pdf │ ├── SENS_CORR_COLL_AUTO_ASS_DEF_TPOR.pdf │ ├── SENS_CORR_COLL_AUTO_CONF.pdf │ └── SENS_CORR_COLL_AUTO_SAVE.pdf ├── cal_groups ├── commands │ ├── MMEM_LOAD_CORR.pdf │ └── MMEM_STOR_CORR.pdf ├── my_cal_group.cal └── save_load_cal.py ├── deembedding ├── commands │ ├── CALC_TRAN_VNET_SEND_DEEM_PAR_DATA.pdf │ ├── CALC_TRAN_VNET_SEND_DEEM_STAT.pdf │ ├── CALC_TRAN_VNET_SEND_DEEM_TND.pdf │ └── MMEM_LOAD_VNET_SEND_DEEM.pdf ├── deembed.py └── test.s2p ├── file_transfer ├── commands │ ├── MMEM_DATA.pdf │ ├── MMEM_DEL.pdf │ ├── MMEM_MDIR.pdf │ └── MMEM_RDIR.pdf ├── read_file.py ├── write.znx └── write_file.py ├── fixture_compensation ├── commands │ ├── SENS_CORR_COLL_FIXT_ACQ.pdf │ ├── SENS_CORR_COLL_FIXT_LMP.pdf │ ├── SENS_CORR_COLL_FIXT_LMP_LOSS.pdf │ ├── SENS_CORR_COLL_FIXT_SAVE.pdf │ └── SENS_CORR_COLL_FIXT_STAR.pdf └── fixture_compensation.py ├── measure ├── Trc1.csv ├── ch1_data.s4p ├── commands │ ├── CALC_PAR_DEF_SGR.pdf │ ├── INIT.pdf │ ├── INIT_CONT_ALL.pdf │ ├── INIT_SCOP.pdf │ ├── MMEM_STOR_TRAC.pdf │ └── MMEM_STOR_TRAC_PORT.pdf └── measure.py ├── properties └── properties.py ├── readme.md ├── requirements.txt └── screenshots ├── commands ├── HCOP.pdf ├── HCOP_DEST.pdf ├── HCOP_DEV_LANG.pdf ├── HCOP_PAGE_WIND.pdf └── MMEM_NAME.pdf └── screenshot.py /autocal/cal_functions.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import numpy as np 4 | from rohdeschwarz.instruments.vna import Vna 5 | 6 | # Function for querying vna ports 7 | # that are connected to the cal unit 8 | # Assumes only one cal unit is connected 9 | def connections(vna): 10 | # returns vna -> cal unit port connection pairs 11 | # cal unit port 0 means vna port not connected 12 | ports = vna.query("SENS:CORR:COLL:AUTO:PORT:CONN?") 13 | 14 | # Parse result string 15 | # Return vna ports that are connected 16 | ports = ports.split(',') 17 | ports = [int(i) for i in ports] 18 | ports = np.reshape(ports, (len(ports)/2, 2)) 19 | ports = [port[0] for port in ports if port[1] != 0] 20 | return sorted(ports) 21 | 22 | # Function that returns the steps needed 23 | # to calibrate [ports] using a cal unit 24 | # with num_ports ports 25 | # example: 26 | # get_cal_steps([1,2,3,4,5], 4) 27 | # # => [[1,2,3,4], [1,5]] (2 steps) 28 | def get_cal_steps(ports, num_ports): 29 | ports.sort() 30 | port1 = ports.pop(0) 31 | steps = [] 32 | while ports: 33 | if len(ports) < num_ports-1: 34 | step = [port1] 35 | step += ports 36 | steps.append(step) 37 | del ports[:] 38 | else: 39 | step = [port1] 40 | step += ports[:num_ports-1] 41 | steps.append(step) 42 | del ports[:num_ports-1] 43 | return steps 44 | 45 | -------------------------------------------------------------------------------- /autocal/calibrate_example.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Handle python 2, 3 input 4 | # differences 5 | try: 6 | input = raw_input 7 | except: 8 | pass 9 | 10 | from cal_functions import connections 11 | from cal_functions import get_cal_steps 12 | from rohdeschwarz.instruments.vna import Vna 13 | 14 | # Provide this information: 15 | ip_address = '127.0.0.1' 16 | timeout_ms = 5*60*1000 # 5 mins 17 | ports = range(1,21) # VNA Ports 1-20 18 | cal_size = 8 # Cal unit is 8 ports 19 | 20 | # Assuming channel 1 ('SENS1') 21 | # for simplicity's sake 22 | 23 | # Connect to VNA 24 | vna = Vna() 25 | vna.open_tcp(ip_address) 26 | 27 | # Delete any previously defined cal steps 28 | vna.write("SENS1:CORR:COLL:AUTO:ASS:DEL:ALL") 29 | 30 | # Setup for full N-Port calibration with cal unit 31 | vna.write("SENS1:CORR:COLL:AUTO:CONF FNPort,''") 32 | 33 | # get cal steps 34 | steps = get_cal_steps(ports, cal_size) 35 | num_steps = len(steps) 36 | 37 | # Define each cal step via SCPI 38 | for i in range(1, num_steps+1): 39 | step = [str(n) for n in steps[i]] 40 | step = ",".join(step) 41 | scpi = "SENS1:CORR:COLL:AUTO:ASS{0}:TPOR {1}".format(i, step) 42 | vna.write(scpi) 43 | 44 | # For each cal step: 45 | # - Make sure vna ports are connected 46 | # - Start measurement 47 | # - Wait until it completes 48 | for i in range(1, num_steps+1): 49 | while connections(vna) != steps[i]: 50 | input('Connect ports {0}'.format(step)) 51 | vna.write("SENS1:CORR:COLL:AUTO:ASS{0}:ACQ".format(i)) 52 | vna.pause(timeout_ms) 53 | 54 | # Apply calibration 55 | vna.write("SENS1:CORR:COLL:AUTO:SAVE") 56 | 57 | # Close connection 58 | vna.local() 59 | vna.close() 60 | -------------------------------------------------------------------------------- /autocal/commands/SENS_CORR_COLL_AUTO_ASS_ACQ.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/autocal/commands/SENS_CORR_COLL_AUTO_ASS_ACQ.pdf -------------------------------------------------------------------------------- /autocal/commands/SENS_CORR_COLL_AUTO_ASS_DEF_TPOR.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/autocal/commands/SENS_CORR_COLL_AUTO_ASS_DEF_TPOR.pdf -------------------------------------------------------------------------------- /autocal/commands/SENS_CORR_COLL_AUTO_CONF.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/autocal/commands/SENS_CORR_COLL_AUTO_CONF.pdf -------------------------------------------------------------------------------- /autocal/commands/SENS_CORR_COLL_AUTO_SAVE.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/autocal/commands/SENS_CORR_COLL_AUTO_SAVE.pdf -------------------------------------------------------------------------------- /cal_groups/commands/MMEM_LOAD_CORR.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/cal_groups/commands/MMEM_LOAD_CORR.pdf -------------------------------------------------------------------------------- /cal_groups/commands/MMEM_STOR_CORR.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/cal_groups/commands/MMEM_STOR_CORR.pdf -------------------------------------------------------------------------------- /cal_groups/my_cal_group.cal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/cal_groups/my_cal_group.cal -------------------------------------------------------------------------------- /cal_groups/save_load_cal.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from rohdeschwarz.instruments.vna import Vna 4 | 5 | # Connect 6 | vna = Vna() 7 | vna.open_tcp() 8 | 9 | # Applying example in channel 1 10 | channel = 1 11 | 12 | # Load cal group 13 | # Assuming cal group called "my_cal_group" 14 | # cal group files have .cal extension 15 | cal_group = "my_cal_group.cal"; 16 | 17 | scpi = ":MMEM:LOAD:CORR {0}, '{1}'" 18 | scpi = scpi.format(channel, cal_group) 19 | vna.write(scpi); 20 | vna.pause() 21 | 22 | # Saving a calibration to a cal group 23 | new_cal_group = "my_new_cal.cal" 24 | 25 | scpi = ":MMEM:STOR:CORR {0}, '{1}'" 26 | scpi = scpi.format(channel, new_cal_group) 27 | vna.write(scpi); 28 | vna.pause() 29 | 30 | vna.close() 31 | -------------------------------------------------------------------------------- /deembedding/commands/CALC_TRAN_VNET_SEND_DEEM_PAR_DATA.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/deembedding/commands/CALC_TRAN_VNET_SEND_DEEM_PAR_DATA.pdf -------------------------------------------------------------------------------- /deembedding/commands/CALC_TRAN_VNET_SEND_DEEM_STAT.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/deembedding/commands/CALC_TRAN_VNET_SEND_DEEM_STAT.pdf -------------------------------------------------------------------------------- /deembedding/commands/CALC_TRAN_VNET_SEND_DEEM_TND.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/deembedding/commands/CALC_TRAN_VNET_SEND_DEEM_TND.pdf -------------------------------------------------------------------------------- /deembedding/commands/MMEM_LOAD_VNET_SEND_DEEM.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/deembedding/commands/MMEM_LOAD_VNET_SEND_DEEM.pdf -------------------------------------------------------------------------------- /deembedding/deembed.py: -------------------------------------------------------------------------------- 1 | from rohdeschwarz.instruments.vna import Vna 2 | import os 3 | 4 | # Connect 5 | vna = Vna() 6 | vna.open_tcp() 7 | 8 | channel = 1 9 | ports = range(1, 5) # Ports 1-4 10 | filename = "test.s2p" 11 | # s2p file must exist locally on VNA 12 | 13 | for port in ports: 14 | # Set deembed model to touchstone file 15 | scpi = "CALC{0}:TRAN:VNET:SEND:DEEM{1}:TND FIMP" 16 | scpi = scpi.format(channel, port) 17 | vna.write(scpi) 18 | 19 | ## Option a: 20 | ## Set via touchstone file on VNA 21 | # scpi = "MMEM:LOAD:VNET{0}:SEND:DEEM{1} '{2}'" 22 | # scpi = scpi.format(channel, port, filename) 23 | # vna.write(scpi) 24 | 25 | # Option b: 26 | # Set via data transfer 27 | data = open(filename, 'rb').read() 28 | size_str = str(len(data)) 29 | header = "#{0}{1}".format(len(size_str), size_str) 30 | scpi = "CALC{0}:TRAN:VNET:SEND:DEEM{1}:PAR:DATA FPOR,{2}{3}" 31 | scpi = scpi.format(channel, port, header, data) 32 | vna.write(scpi) 33 | 34 | # Turn deembedding on 35 | scpi = "CALC{0}:TRAN:VNET:SEND:DEEM{1} 1" 36 | scpi = scpi.format(channel, port) 37 | vna.write(scpi) 38 | 39 | vna.close() 40 | -------------------------------------------------------------------------------- /deembedding/test.s2p: -------------------------------------------------------------------------------- 1 | # HZ S RI R 50.00 2 | ! Rohde & Schwarz Vector Network Analyzer 3 | ! Rohde-Schwarz,ZNB20-4Port,1311601064100104,2.70 4 | ! Created: UTC 10/26/2016, 10:54:18 PM 5 | ! freq[Hz] re:S11 im:S11 re:S21 im:S21 re:S12 im:S12 re:S22 im:S22 6 | 1.000000000000000E5 -4.650286138057709E-1 4.089071974158287E-2 4.707356989383698E-1 -4.737751930952072E-2 5.465584397315979E-1 -4.952538013458252E-2 -4.800232648849487E-1 1.139849647879601E-1 7 | 1.000995000000000E8 -5.171534419059753E-1 7.184606045484543E-2 5.352101922035217E-1 -8.885499089956284E-2 5.008977055549622E-1 -9.307128190994263E-2 -4.156815409660339E-1 1.760417819023132E-1 8 | 2.000990000000000E8 -4.624612033367157E-1 1.333507001399994E-1 4.996234774589539E-1 -1.963770687580109E-1 4.977825880050659E-1 -1.907065361738205E-1 -2.880096733570099E-1 2.299540787935257E-1 9 | 3.000985000000000E8 -4.435703158378601E-1 1.860380917787552E-1 4.313593506813049E-1 -2.977156937122345E-1 4.693158864974976E-1 -2.516992092132568E-1 -1.597633957862854E-1 2.152875810861588E-1 10 | 4.000980000000000E8 -3.113213777542114E-1 2.283112853765488E-1 3.837676346302033E-1 -3.665494918823242E-1 3.731837868690491E-1 -3.479996025562286E-1 -1.175147518515587E-1 1.448497474193573E-1 11 | 5.000975000000000E8 -2.446680366992950E-1 2.753877043724060E-1 3.236669003963471E-1 -3.939979672431946E-1 2.976357936859131E-1 -4.565667510032654E-1 -1.025895401835442E-1 1.081241741776466E-1 12 | 6.000970000000000E8 -1.689280867576599E-1 2.611966133117676E-1 2.426091581583023E-1 -5.124595165252686E-1 2.309855818748474E-1 -4.835723340511322E-1 -9.061937779188156E-2 6.829798221588135E-2 13 | 7.000965000000000E8 -8.638388663530350E-2 2.062468528747559E-1 1.204829812049866E-1 -5.098062753677368E-1 1.135804802179337E-1 -5.955058932304382E-1 -1.249203756451607E-1 4.103361070156097E-2 14 | 8.000960000000000E8 -2.296591363847256E-2 1.162484884262085E-1 -1.233956031501293E-2 -5.785503983497620E-1 -1.319809630513191E-2 -5.154919028282166E-1 -1.253149807453156E-1 3.337892144918442E-2 15 | 9.000955000000000E8 5.418644286692143E-3 2.854183688759804E-2 -1.464731395244598E-1 -5.165286660194397E-1 -1.551270186901093E-1 -5.831109881401062E-1 -1.290121376514435E-1 2.538190037012100E-2 16 | 1.000095000000000E9 -1.633206498809159E-3 -7.080236822366715E-2 -2.902536094188690E-1 -5.016920566558838E-1 -2.693555653095245E-1 -4.558832347393036E-1 -1.317293047904968E-1 1.742575876414776E-2 17 | 1.100094500000000E9 -4.928623512387276E-2 -1.468084901571274E-1 -3.753316998481751E-1 -4.564439952373505E-1 -3.546146154403687E-1 -4.461606740951538E-1 -1.639190912246704E-1 -3.978914464823902E-4 18 | 1.200094000000000E9 -1.222496405243874E-1 -2.300209999084473E-1 -4.095991551876068E-1 -3.472020328044891E-1 -4.133293330669403E-1 -3.176785409450531E-1 -1.863820254802704E-1 -2.133519761264324E-2 19 | 1.300093500000000E9 -2.233693748712540E-1 -2.544601857662201E-1 -4.523896276950836E-1 -2.193564921617508E-1 -4.705063104629517E-1 -2.075112909078598E-1 -2.256393879652023E-1 -4.108295589685440E-2 20 | 1.400093000000000E9 -2.969967722892761E-1 -2.547541260719299E-1 -5.191507935523987E-1 -1.083417683839798E-1 -4.561731815338135E-1 -1.056350916624069E-1 -3.267671763896942E-1 -2.451318874955177E-2 21 | 1.500092500000000E9 -4.240844845771790E-1 -2.395292371511459E-1 -4.640654623508453E-1 -1.435877988114953E-3 -5.381696224212647E-1 -9.702796814963222E-4 -3.978893160820007E-1 6.391790509223938E-2 22 | 1.600092000000000E9 -4.912039041519165E-1 -1.771270632743835E-1 -4.618768692016602E-1 8.499253541231155E-2 -4.366686642169952E-1 8.460394293069840E-2 -4.307014048099518E-1 2.362779229879379E-1 23 | 1.700091500000000E9 -5.008114576339722E-1 -1.149118244647980E-1 -4.387009143829346E-1 1.713994443416596E-1 -4.703702926635742E-1 1.613009423017502E-1 -2.994922101497650E-1 3.788650929927826E-1 24 | 1.800091000000000E9 -5.381672978401184E-1 -2.960686758160591E-2 -4.393416643142700E-1 2.350406497716904E-1 -4.072619676589966E-1 2.349494546651840E-1 -1.212474629282951E-1 3.387634754180908E-1 25 | 1.900090500000000E9 -4.770650565624237E-1 5.371921509504318E-2 -3.437378406524658E-1 2.994736135005951E-1 -4.018830955028534E-1 3.068410754203796E-1 -2.192077413201332E-2 2.673317492008209E-1 26 | 2.000090000000000E9 -4.738007187843323E-1 1.449176371097565E-1 -2.927450239658356E-1 3.734292984008789E-1 -2.837722599506378E-1 3.959163725376129E-1 -7.867788663133979E-4 1.921393573284149E-1 27 | 2.100089500000000E9 -4.074440896511078E-1 1.826953291893005E-1 -2.026813179254532E-1 4.329644441604614E-1 -2.349550276994705E-1 4.153846800327301E-1 -2.035521529614925E-2 1.245007216930389E-1 28 | 2.200089000000000E9 -3.154979944229126E-1 2.691412866115570E-1 -1.264867931604385E-1 4.601128399372101E-1 -1.186775192618370E-1 4.556609988212585E-1 -5.113036558032036E-2 1.006773039698601E-1 29 | 2.300088500000000E9 -2.341660708189011E-1 2.662164568901062E-1 -1.311279088258743E-2 5.512757301330566E-1 -1.204952597618103E-2 5.481922030448914E-1 -7.496977597475052E-2 8.548868447542191E-2 30 | 2.400088000000000E9 -1.226352676749229E-1 2.457445114850998E-1 1.044815480709076E-1 4.863125383853912E-1 1.184241771697998E-1 4.929891228675842E-1 -9.220052510499954E-2 8.169952034950256E-2 31 | 2.500087500000000E9 -2.149127051234245E-2 1.671793460845947E-1 2.478330433368683E-1 4.763106405735016E-1 2.419327348470688E-1 5.032120347023010E-1 -1.036372855305672E-1 8.334323018789291E-2 32 | 2.600087000000000E9 4.088779911398888E-2 6.477686017751694E-2 3.937331438064575E-1 4.346135556697846E-1 3.628413677215576E-1 3.974584043025971E-1 -1.079560965299606E-1 9.518045186996460E-2 33 | 2.700086500000000E9 5.405574291944504E-2 -6.128495559096336E-2 4.230714738368988E-1 3.427138030529022E-1 4.890996515750885E-1 3.261564671993256E-1 -1.117332875728607E-1 8.081561326980591E-2 34 | 2.800086000000000E9 1.134885661303997E-2 -1.619953960180283E-1 4.998451173305512E-1 2.072201520204544E-1 4.870126247406006E-1 1.829499155282974E-1 -1.331426054239273E-1 7.479144632816315E-2 35 | 2.900085500000000E9 -6.557729840278626E-2 -2.397822737693787E-1 4.650018811225891E-1 6.943114846944809E-2 4.896432757377625E-1 6.762421131134033E-2 -1.725238710641861E-1 8.198202401399612E-2 36 | 3.000085000000000E9 -1.503750234842300E-1 -2.818244099617004E-1 4.949133992195129E-1 -4.990294948220253E-2 5.092772841453552E-1 -5.412343516945839E-2 -2.659039199352264E-1 1.421973109245300E-1 37 | 3.100084500000000E9 -2.419902682304382E-1 -3.015728890895844E-1 4.250732064247131E-1 -1.499790996313095E-1 4.563944637775421E-1 -1.392769515514374E-1 -2.461246252059937E-1 2.701308429241180E-1 38 | 3.200084000000000E9 -3.725288510322571E-1 -2.714070677757263E-1 4.188566505908966E-1 -2.049867957830429E-1 3.709464967250824E-1 -2.120045125484467E-1 -2.083984911441803E-1 4.313331842422485E-1 39 | 3.300083500000000E9 -4.480650126934052E-1 -2.267138659954071E-1 3.371526002883911E-1 -2.425510436296463E-1 3.307789564132690E-1 -2.544201910495758E-1 -6.346212700009346E-3 4.798870384693146E-1 40 | 3.400083000000000E9 -4.257997572422028E-1 -1.377096623182297E-1 3.379503786563873E-1 -3.045573234558106E-1 3.385879993438721E-1 -3.430536389350891E-1 1.494711041450501E-1 3.448853790760040E-1 41 | 3.500082500000000E9 -4.189206063747406E-1 -5.525709316134453E-2 2.339128702878952E-1 -4.473069012165070E-1 2.638286054134369E-1 -4.123775362968445E-1 1.811490207910538E-1 1.979364603757858E-1 42 | 3.600082000000000E9 -4.041399955749512E-1 3.662906214594841E-2 1.504160314798355E-1 -4.877952337265015E-1 1.736602783203125E-1 -5.029974579811096E-1 1.447274386882782E-1 1.280986815690994E-1 43 | 3.700081500000000E9 -4.211923182010651E-1 1.019602045416832E-1 4.599737375974655E-2 -5.126338601112366E-1 5.677080154418945E-2 -4.914195835590363E-1 9.218449145555496E-2 8.422718942165375E-2 44 | 3.800081000000000E9 -3.441785871982575E-1 1.647201031446457E-1 -5.965622141957283E-2 -5.578982234001160E-1 -6.368674337863922E-2 -4.972543716430664E-1 5.230676010251045E-2 8.589756488800049E-2 45 | 3.900080500000000E9 -2.299646586179733E-1 1.869466900825501E-1 -1.687983423471451E-1 -5.373899936676025E-1 -1.701564788818359E-1 -4.824935793876648E-1 2.704630047082901E-2 1.068047508597374E-1 46 | 4.000080000000000E9 -1.313230991363525E-1 1.827771812677383E-1 -2.986583113670349E-1 -4.536788463592529E-1 -2.847639024257660E-1 -4.308119416236877E-1 1.427318342030048E-2 1.112319231033325E-1 47 | 4.100079500000000E9 -6.049551814794540E-2 1.640099436044693E-1 -3.712521791458130E-1 -3.870064318180084E-1 -4.144621789455414E-1 -3.558779060840607E-1 7.335835602134466E-3 1.263087391853333E-1 48 | 4.200079000000000E9 9.733898565173149E-3 8.406285196542740E-2 -4.667840600013733E-1 -2.540293633937836E-1 -5.142546296119690E-1 -2.313352972269058E-1 2.719547774177045E-4 1.402583867311478E-1 49 | 4.300078500000000E9 4.917122423648834E-2 6.248918827623129E-3 -5.462327003479004E-1 -1.045485585927963E-1 -5.836251974105835E-1 -1.181777641177177E-1 -1.092188339680433E-2 1.633499562740326E-1 50 | 4.400078000000000E9 5.921323597431183E-2 -8.165357261896133E-2 -5.696470737457275E-1 4.027878120541573E-2 -5.404524803161621E-1 3.887544572353363E-2 -2.700612880289555E-2 1.649378240108490E-1 51 | 4.500077500000000E9 3.925962746143341E-2 -1.872450709342957E-1 -5.138115882873535E-1 1.830921620130539E-1 -4.615894258022308E-1 1.599528193473816E-1 -3.319808840751648E-2 2.055090218782425E-1 52 | 4.600077000000000E9 -2.421146258711815E-2 -2.777706086635590E-1 -4.195198416709900E-1 2.658767998218536E-1 -4.212263226509094E-1 2.918143868446350E-1 -1.792134344577789E-2 3.109952807426453E-1 53 | 4.700076500000000E9 -1.459614485502243E-1 -3.317452669143677E-1 -3.018658459186554E-1 3.379287123680115E-1 -2.884787619113922E-1 3.563264012336731E-1 5.935315042734146E-2 3.755785226821899E-1 54 | 4.800076000000000E9 -3.105003237724304E-1 -3.705984652042389E-1 -1.811263412237167E-1 3.438710272312164E-1 -1.919805109500885E-1 3.437988460063934E-1 1.791347861289978E-1 3.636648356914520E-1 55 | 4.900075500000000E9 -4.204329252243042E-1 -2.477829009294510E-1 -1.058250293135643E-1 3.840970695018768E-1 -1.034678891301155E-1 3.814398646354675E-1 2.321909517049789E-1 2.585223317146301E-1 56 | 5.000075000000000E9 -5.927907824516296E-1 -1.970915496349335E-2 -3.418973647058010E-3 3.292749524116516E-1 -5.541694816201925E-3 3.051857054233551E-1 2.633659839630127E-1 2.108477205038071E-1 57 | 5.100074500000000E9 -3.433037102222443E-1 3.042010664939880E-1 -7.037810981273651E-3 1.575973629951477E-1 -6.841763388365507E-3 1.763847321271896E-1 2.307756245136261E-1 1.706614196300507E-1 58 | 5.200074000000000E9 5.656540393829346E-2 9.826119989156723E-3 -1.548991501331329E-1 3.056808710098267E-1 -1.766109466552734E-1 3.242550790309906E-1 3.115030527114868E-1 7.946358621120453E-2 59 | 5.300073500000000E9 -1.279755532741547E-1 -1.748481839895248E-1 -2.095506899058819E-2 4.910261332988739E-1 -2.265691012144089E-2 4.503335356712341E-1 1.589811891317368E-1 8.871326223015785E-3 60 | 5.400073000000000E9 -2.392131537199020E-1 -1.256967633962631E-1 1.163239777088165E-1 4.732788503170013E-1 1.263740360736847E-1 4.673088788986206E-1 1.005727201700211E-1 3.830172866582871E-2 61 | 5.500072500000000E9 -2.878711819648743E-1 -4.159751906991005E-2 2.509839236736298E-1 4.585973918437958E-1 2.687315046787262E-1 4.603216946125031E-1 7.191897928714752E-2 9.306053072214127E-2 62 | 5.600072000000000E9 -2.887664735317230E-1 4.505562409758568E-2 3.809486627578735E-1 3.797487616539002E-1 3.273268640041351E-1 3.327226638793945E-1 6.763684749603272E-2 1.209652870893478E-1 63 | 5.700071500000000E9 -2.332786768674851E-1 1.136166155338287E-1 4.323473274707794E-1 2.410450130701065E-1 4.864331483840942E-1 2.578183114528656E-1 7.612252235412598E-2 1.643162518739700E-1 64 | 5.800071000000000E9 -1.393454372882843E-1 1.461745500564575E-1 5.472664833068848E-1 1.339591890573502E-1 5.189744830131531E-1 1.410540193319321E-1 8.812316507101059E-2 1.741015166044235E-1 65 | 5.900070500000000E9 -3.815385207417421E-5 1.544457077980042E-1 5.204524397850037E-1 -1.718975789844990E-2 5.127916932106018E-1 -1.739695481956005E-2 8.833599835634232E-2 1.820368319749832E-1 66 | 6.000070000000000E9 1.596858799457550E-1 8.466095663607121E-3 4.536831080913544E-1 -1.949152946472168E-1 5.471019744873047E-1 -2.069361954927445E-1 8.328283578157425E-2 1.997292339801788E-1 67 | 6.100069500000000E9 1.771834939718247E-1 7.426599971950054E-3 5.102689862251282E-1 -2.172603905200958E-1 5.294075608253479E-1 -2.206635028123856E-1 8.032611757516861E-2 2.183489799499512E-1 68 | 6.200069000000000E9 1.603434532880783E-1 7.812728174030781E-3 4.571257829666138E-1 -1.918937116861343E-1 4.821509718894959E-1 -1.955396085977554E-1 7.620715349912643E-2 1.977483183145523E-1 69 | 6.300068500000000E9 1.558187752962112E-1 8.618390187621117E-3 4.717840850353241E-1 -1.980330199003220E-1 4.798484444618225E-1 -2.177271544933319E-1 8.338738977909088E-2 1.988179385662079E-1 70 | 6.400068000000000E9 1.637195944786072E-1 8.708319626748562E-3 4.672458171844482E-1 -2.129069715738297E-1 5.101668834686279E-1 -2.175055295228958E-1 7.403367757797241E-2 2.108093351125717E-1 71 | 6.500067500000000E9 1.712613552808762E-1 8.281645365059376E-3 5.248017907142639E-1 -1.967530399560928E-1 5.401607751846314E-1 -2.176289260387421E-1 7.425925135612488E-2 1.993602216243744E-1 72 | 6.600067000000000E9 1.742130070924759E-1 8.903856389224529E-3 4.870605468750000E-1 -2.244305163621903E-1 5.448790788650513E-1 -2.155135422945023E-1 7.793674618005753E-2 2.004834413528442E-1 73 | 6.700066500000000E9 1.536715030670166E-1 8.834598585963249E-3 5.161353349685669E-1 -2.077807635068893E-1 4.983634650707245E-1 -1.943559944629669E-1 8.145643025636673E-2 2.154119014739990E-1 74 | 6.800066000000000E9 1.706385016441345E-1 8.377515710890293E-3 5.111625790596008E-1 -2.033805549144745E-1 5.276530981063843E-1 -2.219352275133133E-1 8.081745356321335E-2 1.922469139099121E-1 75 | 6.900065500000000E9 1.559110134840012E-1 8.889324963092804E-3 4.910081923007965E-1 -1.867042630910873E-1 5.275459289550781E-1 -2.244837582111359E-1 7.862655073404312E-2 2.169614881277084E-1 76 | 7.000065000000000E9 1.752931028604507E-1 8.721451275050640E-3 5.382543206214905E-1 -2.044632136821747E-1 5.403536558151245E-1 -2.195831388235092E-1 8.515183627605438E-2 2.193163931369782E-1 77 | 7.100064500000000E9 1.626037955284119E-1 7.546887267380953E-3 5.050238370895386E-1 -2.005739808082581E-1 4.960731863975525E-1 -2.241362482309341E-1 8.170524239540100E-2 2.149257361888886E-1 78 | 7.200064000000000E9 1.605170071125031E-1 7.619439624249935E-3 4.834158420562744E-1 -2.202984243631363E-1 5.168938040733337E-1 -2.087544351816177E-1 7.324609160423279E-2 1.847808212041855E-1 79 | 7.300063500000000E9 1.591978967189789E-1 8.692340925335884E-3 5.364182591438294E-1 -2.051360905170441E-1 4.817896783351898E-1 -2.223419547080994E-1 7.159056514501572E-2 2.049825489521027E-1 80 | 7.400063000000000E9 1.502596437931061E-1 8.050457574427128E-3 4.914580285549164E-1 -2.073229104280472E-1 4.564467370510101E-1 -1.917621493339539E-1 7.267004251480103E-2 2.139271646738052E-1 81 | 7.500062500000000E9 1.685308814048767E-1 8.927623741328716E-3 4.986035525798798E-1 -1.950771957635880E-1 4.835777878761292E-1 -2.217765897512436E-1 7.543215155601502E-2 1.931021064519882E-1 82 | 7.600062000000000E9 1.591363996267319E-1 7.858117111027241E-3 5.483560562133789E-1 -1.945826560258865E-1 5.363059043884277E-1 -1.987227350473404E-1 7.892715185880661E-2 1.895791143178940E-1 83 | 7.700061500000000E9 1.573898196220398E-1 8.411670103669167E-3 4.532516002655029E-1 -1.884749680757523E-1 5.342116355895996E-1 -2.245517522096634E-1 7.344698160886765E-2 2.210766226053238E-1 84 | 7.800061000000000E9 1.639953255653381E-1 8.954087272286415E-3 4.937807023525238E-1 -2.267450541257858E-1 5.224540829658508E-1 -1.895598918199539E-1 7.330272346735001E-2 1.861209422349930E-1 85 | 7.900060500000000E9 1.705730259418488E-1 8.610351942479610E-3 5.225525498390198E-1 -2.112576812505722E-1 5.122489333152771E-1 -2.167412340641022E-1 8.020704239606857E-2 1.878076344728470E-1 86 | 8.000060000000000E9 1.729791760444641E-1 8.523618802428246E-3 5.350227952003479E-1 -2.242281287908554E-1 4.844075441360474E-1 -2.035755217075348E-1 7.242946326732636E-2 2.090839892625809E-1 87 | 8.100059500000000E9 1.724555045366287E-1 8.410521782934666E-3 5.006477236747742E-1 -1.987754404544830E-1 4.555618762969971E-1 -1.941721588373184E-1 8.317779004573822E-2 2.016266137361527E-1 88 | 8.200059000000000E9 1.645844429731369E-1 8.229116909205914E-3 4.573063552379608E-1 -2.163181304931641E-1 5.067774653434753E-1 -2.201963514089584E-1 8.268596976995468E-2 2.206777185201645E-1 89 | 8.300058500000000E9 1.485507488250732E-1 8.415314368903637E-3 4.678119719028473E-1 -1.874821186065674E-1 4.735471904277802E-1 -1.882088184356690E-1 7.642305642366409E-2 1.973369419574738E-1 90 | 8.400058000000000E9 1.567292660474777E-1 8.687946945428848E-3 5.388235449790955E-1 -2.013024985790253E-1 5.011405944824219E-1 -2.260224521160126E-1 8.631747215986252E-2 2.061668634414673E-1 91 | 8.500057500000000E9 1.745710521936417E-1 8.694038726389408E-3 5.021686553955078E-1 -2.165002524852753E-1 4.586757719516754E-1 -2.090213596820831E-1 7.844986021518707E-2 2.068400382995606E-1 92 | 8.600057000000000E9 1.783121675252914E-1 8.859016932547092E-3 4.602104723453522E-1 -2.138138413429260E-1 5.195729136466980E-1 -1.993510574102402E-1 7.514074444770813E-2 1.994063556194305E-1 93 | 8.700056500000000E9 1.604912281036377E-1 8.168797940015793E-3 4.916691780090332E-1 -1.877489835023880E-1 5.003597736358643E-1 -1.888522356748581E-1 8.660647273063660E-2 2.212636172771454E-1 94 | 8.800056000000000E9 1.757770925760269E-1 8.701429702341557E-3 5.204164981842041E-1 -2.263947278261185E-1 4.662048518657684E-1 -2.184876799583435E-1 8.425436168909073E-2 1.858230084180832E-1 95 | 8.900055500000000E9 1.471126228570938E-1 8.909497410058975E-3 5.477348566055298E-1 -2.234047502279282E-1 4.961589574813843E-1 -2.141070663928986E-1 7.906366139650345E-2 2.165002226829529E-1 96 | 9.000055000000000E9 1.471721231937408E-1 8.560918271541596E-3 5.461863875389099E-1 -2.168531268835068E-1 5.110885500907898E-1 -1.987126767635346E-1 8.298367261886597E-2 2.096437364816666E-1 97 | 9.100054500000000E9 1.476234048604965E-1 8.975358679890633E-3 5.163985490798950E-1 -1.944637745618820E-1 4.653322398662567E-1 -2.210588604211807E-1 8.024576306343079E-2 2.195831686258316E-1 98 | 9.200054000000000E9 1.787138730287552E-1 8.556474000215530E-3 5.062631964683533E-1 -1.941589564085007E-1 5.007333159446716E-1 -2.068896144628525E-1 7.203784584999085E-2 1.951765120029450E-1 99 | 9.300053500000000E9 1.516610831022263E-1 8.346258662641048E-3 4.922414124011993E-1 -2.025420069694519E-1 4.610395133495331E-1 -1.866764277219772E-1 8.350501954555512E-2 2.116682678461075E-1 100 | 9.400053000000000E9 1.563543677330017E-1 7.966420613229275E-3 5.239143371582031E-1 -2.243533432483673E-1 4.723346829414368E-1 -1.984293609857559E-1 8.549261838197708E-2 2.174476832151413E-1 101 | 9.500052500000000E9 1.618767976760864E-1 8.309108205139637E-3 5.300775766372681E-1 -1.913258135318756E-1 4.825459420681000E-1 -1.956705600023270E-1 8.482459932565689E-2 1.944198161363602E-1 102 | 9.600052000000000E9 1.598356366157532E-1 7.887577638030052E-3 4.883611202239990E-1 -2.077757269144058E-1 4.656200408935547E-1 -2.081210613250732E-1 8.173670619726181E-2 2.009272426366806E-1 103 | 9.700051500000000E9 1.654988974332809E-1 7.571953348815441E-3 4.569513797760010E-1 -2.211483716964722E-1 4.877694547176361E-1 -2.187256664037705E-1 8.480668812990189E-2 2.155340760946274E-1 104 | 9.800051000000000E9 1.742566376924515E-1 8.985294960439205E-3 4.684301018714905E-1 -1.950835287570953E-1 5.354118347167969E-1 -2.108798772096634E-1 7.235442847013474E-2 1.901600509881973E-1 105 | 9.900050500000000E9 1.708884239196777E-1 8.195011876523495E-3 4.863138496875763E-1 -2.047730982303619E-1 5.061619877815247E-1 -2.208032608032227E-1 7.478785514831543E-2 1.900254189968109E-1 106 | 1.000005000000000E+010 1.591383814811707E-1 7.607505191117525E-3 5.245141386985779E-1 -2.059354335069656E-1 4.631766974925995E-1 -1.887892782688141E-1 7.651889324188232E-2 2.119001448154450E-1 107 | 1.010004950000000E+010 1.466127485036850E-1 8.432491682469845E-3 5.286453366279602E-1 -2.234199345111847E-1 5.509017705917358E-1 -1.869307756423950E-1 8.641186356544495E-2 2.117081731557846E-1 108 | 1.020004900000000E+010 1.499799638986588E-1 8.260823786258698E-3 5.205726623535156E-1 -2.134407162666321E-1 4.718600809574127E-1 -1.981573849916458E-1 7.539052516222000E-2 2.189423888921738E-1 109 | 1.030004850000000E+010 1.554964482784271E-1 8.663780055940151E-3 5.047973990440369E-1 -2.210965007543564E-1 5.311160683631897E-1 -1.892488747835159E-1 8.257608115673065E-2 2.110773772001267E-1 110 | 1.040004800000000E+010 1.648264378309250E-1 8.271109312772751E-3 5.377708077430725E-1 -2.115156948566437E-1 5.361467003822327E-1 -1.889970451593399E-1 7.754803448915482E-2 1.973493993282318E-1 111 | 1.050004750000000E+010 1.636918187141419E-1 7.507290691137314E-3 4.588150382041931E-1 -1.962939202785492E-1 4.650811553001404E-1 -2.064980119466782E-1 8.631069213151932E-2 1.850849986076355E-1 112 | 1.060004700000000E+010 1.758266836404800E-1 8.623284287750721E-3 4.858915507793427E-1 -1.993370056152344E-1 4.952985346317291E-1 -1.958531290292740E-1 7.338308542966843E-2 1.919863820075989E-1 113 | 1.070004650000000E+010 1.747396588325501E-1 7.752010598778725E-3 4.701927900314331E-1 -2.278795838356018E-1 4.927633404731751E-1 -1.910696029663086E-1 7.172852754592896E-2 2.226785570383072E-1 114 | 1.080004600000000E+010 1.783012747764587E-1 8.439132943749428E-3 5.169952511787415E-1 -2.072457671165466E-1 4.670407474040985E-1 -1.985577940940857E-1 8.467260003089905E-2 2.095028609037399E-1 115 | 1.090004550000000E+010 1.686300635337830E-1 7.562665734440088E-3 4.658595919609070E-1 -2.108934223651886E-1 4.870376884937286E-1 -2.185695320367813E-1 7.704072445631027E-2 2.035289704799652E-1 116 | 1.100004500000000E+010 1.623012870550156E-1 7.636316586285830E-3 5.365590453147888E-1 -1.983163207769394E-1 4.587768316268921E-1 -1.892690211534500E-1 7.138580083847046E-2 2.030103653669357E-1 117 | 1.110004450000000E+010 1.708646416664124E-1 8.047112263739109E-3 5.335294604301453E-1 -2.140035480260849E-1 4.675520658493042E-1 -2.247859686613083E-1 7.964357733726502E-2 1.912097185850143E-1 118 | 1.120004400000000E+010 1.491726189851761E-1 7.950642146170139E-3 5.168514847755432E-1 -2.185934782028198E-1 4.804547131061554E-1 -1.982644051313400E-1 7.642740756273270E-2 2.201678305864334E-1 119 | 1.130004350000000E+010 1.590223461389542E-1 7.734484039247036E-3 5.331529974937439E-1 -2.153012305498123E-1 5.129378437995911E-1 -1.965217441320419E-1 7.741104066371918E-2 2.136342078447342E-1 120 | 1.140004300000000E+010 1.631145924329758E-1 7.414216641336680E-3 5.094580054283142E-1 -2.157704830169678E-1 4.567774236202240E-1 -1.959425359964371E-1 8.486187458038330E-2 2.244587540626526E-1 121 | 1.150004250000000E+010 1.643176525831223E-1 8.506042882800102E-3 5.105352401733398E-1 -2.110881954431534E-1 4.723622202873230E-1 -1.973729282617569E-1 7.481690496206284E-2 2.068799436092377E-1 122 | 1.160004200000000E+010 1.702497154474258E-1 7.922830060124397E-3 4.572665691375732E-1 -1.894311606884003E-1 5.407456159591675E-1 -2.011390626430512E-1 7.348038256168366E-2 2.024257034063339E-1 123 | 1.170004150000000E+010 1.781673729419708E-1 8.437035605311394E-3 5.093325376510620E-1 -2.003387361764908E-1 4.797106683254242E-1 -1.872254163026810E-1 8.491560071706772E-2 2.041223794221878E-1 124 | 1.180004100000000E+010 1.476779580116272E-1 8.077321574091911E-3 5.078269243240356E-1 -2.169442027807236E-1 5.242024064064026E-1 -2.243855595588684E-1 7.623523473739624E-2 1.892013847827911E-1 125 | 1.190004050000000E+010 1.562502235174179E-1 7.727893069386482E-3 4.832965135574341E-1 -2.106025218963623E-1 4.644963443279266E-1 -2.130758315324783E-1 8.374124765396118E-2 1.977695226669312E-1 126 | 1.200004000000000E+010 1.525467783212662E-1 7.478929124772549E-3 5.245141386985779E-1 -1.892616748809815E-1 4.523714482784271E-1 -2.111833244562149E-1 7.518479228019714E-2 2.123364657163620E-1 127 | 1.210003950000000E+010 1.525685936212540E-1 8.090503513813019E-3 5.093814730644226E-1 -1.995697468519211E-1 4.653689861297607E-1 -1.872657090425491E-1 7.573518902063370E-2 2.058402448892593E-1 128 | 1.220003900000000E+010 1.636075228452683E-1 7.751711178570986E-3 5.001581311225891E-1 -2.098208665847778E-1 5.360578894615173E-1 -1.915644556283951E-1 8.178849518299103E-2 1.947863101959229E-1 129 | 1.230003850000000E+010 1.610148996114731E-1 8.862411603331566E-3 4.994297921657562E-1 -2.053118944168091E-1 5.423499941825867E-1 -2.020796537399292E-1 7.986963540315628E-2 2.157921493053436E-1 130 | 1.240003800000000E+010 1.502814739942551E-1 8.656639605760574E-3 4.693022668361664E-1 -2.059961557388306E-1 4.618754088878632E-1 -2.233681529760361E-1 7.544135302305222E-2 1.846860647201538E-1 131 | 1.250003750000000E+010 1.519298702478409E-1 8.029385469853878E-3 5.135464668273926E-1 -2.064059376716614E-1 4.883604049682617E-1 -2.254621237516403E-1 8.404427766799927E-2 2.100601047277451E-1 132 | 1.260003700000000E+010 1.742209345102310E-1 7.477980572730303E-3 5.207470655441284E-1 -2.036777883768082E-1 5.084308385848999E-1 -2.117197215557098E-1 8.476506173610687E-2 2.174863219261169E-1 133 | 1.270003650000000E+010 1.736684888601303E-1 8.156664669513702E-3 4.718024730682373E-1 -1.892793923616409E-1 5.440891385078430E-1 -2.093197852373123E-1 7.879016548395157E-2 1.915824562311173E-1 134 | 1.280003600000000E+010 1.658728122711182E-1 8.227018639445305E-3 5.092468857765198E-1 -1.873897910118103E-1 4.552311897277832E-1 -2.236439138650894E-1 7.855974137783051E-2 2.189349085092545E-1 135 | 1.290003550000000E+010 1.616595834493637E-1 7.594272959977388E-3 4.676008224487305E-1 -2.155567258596420E-1 5.075551271438599E-1 -1.978287398815155E-1 7.511799782514572E-2 2.093333303928375E-1 136 | 1.300003500000000E+010 1.560399532318115E-1 7.938807830214500E-3 4.691492617130280E-1 -2.090885788202286E-1 4.981828033924103E-1 -2.250277101993561E-1 7.881775498390198E-2 1.940034329891205E-1 137 | 1.310003450000000E+010 1.699710041284561E-1 8.044566027820110E-3 4.793702960014343E-1 -1.993016004562378E-1 5.492942929267883E-1 -1.881861537694931E-1 7.477430254220963E-2 2.204533219337463E-1 138 | 1.320003400000000E+010 1.499442458152771E-1 7.511984556913376E-3 5.266654491424561E-1 -2.068347036838532E-1 4.595055282115936E-1 -1.889315694570541E-1 8.339804410934448E-2 2.115722894668579E-1 139 | 1.330003350000000E+010 1.478703618049622E-1 7.403830531984568E-3 4.833974838256836E-1 -2.230253219604492E-1 5.225858092308044E-1 -1.976537257432938E-1 7.222615182399750E-2 1.974852830171585E-1 140 | 1.340003300000000E+010 1.637890189886093E-1 7.822765037417412E-3 5.112788677215576E-1 -1.964785754680634E-1 5.025857686996460E-1 -2.038953453302383E-1 8.387098461389542E-2 1.848630905151367E-1 141 | 1.350003250000000E+010 1.713863313198090E-1 8.965921588242054E-3 4.663400053977966E-1 -1.905884444713593E-1 4.776469767093658E-1 -2.068266570568085E-1 7.250449061393738E-2 1.947464197874069E-1 142 | 1.360003200000000E+010 1.638227254152298E-1 7.475384045392275E-3 4.696786999702454E-1 -2.146776765584946E-1 5.425275564193726E-1 -2.109063118696213E-1 8.336173743009567E-2 2.237656265497208E-1 143 | 1.370003150000000E+010 1.548755615949631E-1 7.719005458056927E-3 5.380523800849915E-1 -2.261088788509369E-1 4.735134840011597E-1 -2.266809791326523E-1 7.732535898685455E-2 2.104702442884445E-1 144 | 1.380003100000000E+010 1.678971052169800E-1 8.732936345040798E-3 4.777392148971558E-1 -2.204565107822418E-1 4.593555033206940E-1 -1.942275613546372E-1 8.267193287611008E-2 2.110200077295303E-1 145 | 1.390003050000000E+010 1.475797593593597E-1 7.730239536613226E-3 5.430006980895996E-1 -2.025280892848969E-1 4.902495741844177E-1 -2.005800008773804E-1 8.707214891910553E-2 2.123277485370636E-1 146 | 1.400003000000000E+010 1.520369946956635E-1 8.723149076104164E-3 4.524957239627838E-1 -2.040078938007355E-1 5.118845701217651E-1 -2.071817368268967E-1 8.226385712623596E-2 1.954034119844437E-1 147 | 1.410002950000000E+010 1.751929074525833E-1 8.442678488790989E-3 4.739231467247009E-1 -2.234022319316864E-1 5.418233871459961E-1 -1.951051950454712E-1 8.691772073507309E-2 2.038169503211975E-1 148 | 1.420002900000000E+010 1.519943326711655E-1 8.641958236694336E-3 4.655107259750366E-1 -2.125907838344574E-1 5.476194620132446E-1 -1.916437894105911E-1 8.424081653356552E-2 2.130046486854553E-1 149 | 1.430002850000000E+010 1.464213132858276E-1 8.970065973699093E-3 4.843431115150452E-1 -1.929169297218323E-1 4.879746139049530E-1 -2.195403277873993E-1 8.052991330623627E-2 2.089393883943558E-1 150 | 1.440002800000000E+010 1.698192507028580E-1 8.231064304709435E-3 4.545797407627106E-1 -2.106556296348572E-1 5.169305205345154E-1 -2.101218551397324E-1 7.846777141094208E-2 1.902074217796326E-1 151 | 1.450002750000000E+010 1.495445519685745E-1 7.483622524887323E-3 5.000112652778626E-1 -2.147927880287170E-1 5.484308600425720E-1 -2.104001343250275E-1 7.619214802980423E-2 2.160327434539795E-1 152 | 1.460002700000000E+010 1.779154539108276E-1 8.437084965407848E-3 5.370914936065674E-1 -1.886368691921234E-1 4.856139123439789E-1 -2.239939570426941E-1 7.628121972084045E-2 2.143223434686661E-1 153 | 1.470002650000000E+010 1.639814376831055E-1 8.779123425483704E-3 5.322686433792114E-1 -2.037372291088104E-1 5.127786397933960E-1 -2.222563326358795E-1 7.292611896991730E-2 2.033020853996277E-1 154 | 1.480002600000000E+010 1.556055396795273E-1 7.525416556745768E-3 5.211907625198364E-1 -1.888556778430939E-1 5.470989346504211E-1 -2.018064111471176E-1 8.074436336755753E-2 1.914690136909485E-1 155 | 1.490002550000000E+010 1.618529856204987E-1 8.937610313296318E-3 4.900166690349579E-1 -2.014643847942352E-1 4.553444683551788E-1 -2.059691697359085E-1 7.833271473646164E-2 2.052007019519806E-1 156 | 1.500002500000000E+010 1.581961661577225E-1 8.647651411592960E-3 5.199574828147888E-1 -2.070876657962799E-1 5.339911580085754E-1 -1.863276362419128E-1 7.276976108551025E-2 1.989077031612396E-1 157 | 1.510002450000000E+010 1.770376861095429E-1 7.801643572747707E-3 4.931013286113739E-1 -1.953744143247604E-1 5.470529794692993E-1 -1.995109766721726E-1 7.885599881410599E-2 2.154106646776199E-1 158 | 1.520002400000000E+010 1.585353612899780E-1 7.774630095809698E-3 4.625729322433472E-1 -2.184707969427109E-1 5.322673320770264E-1 -1.965494453907013E-1 7.654988020658493E-2 2.246133387088776E-1 159 | 1.530002350000000E+010 1.467456519603729E-1 8.361387997865677E-3 4.837218821048737E-1 -2.273433208465576E-1 4.659966528415680E-1 -1.887149959802628E-1 7.348474115133286E-2 2.123788446187973E-1 160 | 1.540002300000000E+010 1.485785245895386E-1 7.808733731508255E-3 5.079493522644043E-1 -2.033995240926743E-1 4.925030767917633E-1 -2.122233957052231E-1 8.222997188568115E-2 1.928191184997559E-1 161 | 1.550002250000000E+010 1.755688190460205E-1 7.960329763591290E-3 5.398058295249939E-1 -2.124023288488388E-1 5.136114954948425E-1 -2.155815362930298E-1 7.573905587196350E-2 1.848394125699997E-1 162 | 1.560002200000000E+010 1.759496778249741E-1 8.153019472956657E-3 4.556110203266144E-1 -2.148825824260712E-1 5.433940887451172E-1 -1.996394097805023E-1 7.961308956146240E-2 1.937865167856216E-1 163 | 1.570002150000000E+010 1.495524793863297E-1 7.498602382838726E-3 4.864362478256226E-1 -2.133117169141769E-1 5.235808491706848E-1 -1.977695673704147E-1 8.392713218927383E-2 1.982033401727676E-1 164 | 1.580002100000000E+010 1.530059874057770E-1 7.370025850832462E-3 4.601584672927856E-1 -1.972121596336365E-1 5.026561617851257E-1 -2.199394851922989E-1 7.600820064544678E-2 2.233941256999970E-1 165 | 1.590002050000000E+010 1.627545356750488E-1 7.547386921942234E-3 5.100455880165100E-1 -2.177941352128983E-1 4.763610064983368E-1 -2.019398808479309E-1 8.312792330980301E-2 2.158357799053192E-1 166 | 1.600002000000000E+010 1.533947885036469E-1 7.476981729269028E-3 5.424314737319946E-1 -2.190994024276733E-1 4.915385842323303E-1 -2.073391377925873E-1 8.234760165214539E-2 2.086626291275024E-1 167 | 1.610001950000000E+010 1.638078540563583E-1 7.734983228147030E-3 4.690085053443909E-1 -2.058835774660111E-1 5.117222666740418E-1 -2.219843417406082E-1 7.889956235885620E-2 2.062877863645554E-1 168 | 1.620001900000000E+010 1.561232656240463E-1 8.423304185271263E-3 5.017585754394531E-1 -2.094591557979584E-1 5.460579395294190E-1 -2.012234181165695E-1 8.344789594411850E-2 1.966949105262756E-1 169 | 1.630001850000000E+010 1.549816876649857E-1 7.769686635583639E-3 5.078422427177429E-1 -2.172692418098450E-1 5.399678945541382E-1 -2.048120200634003E-1 8.339852839708328E-2 2.096773833036423E-1 170 | 1.640001800000000E+010 1.471175700426102E-1 7.477381266653538E-3 5.301510095596314E-1 -1.905378550291061E-1 5.291840434074402E-1 -2.068871110677719E-1 7.171449065208435E-2 2.167956829071045E-1 171 | 1.650001750000000E+010 1.637473553419113E-1 8.462152443826199E-3 4.680812656879425E-1 -2.114246338605881E-1 4.551393389701843E-1 -1.999214589595795E-1 8.563881367444992E-2 1.998214721679688E-1 172 | 1.660001700000000E+010 1.557820886373520E-1 8.429945446550846E-3 5.229014158248901E-1 -2.209270149469376E-1 5.447351932525635E-1 -2.213220298290253E-1 8.085182309150696E-2 2.243116497993469E-1 173 | 1.670001650000000E+010 1.493382602930069E-1 7.839792408049107E-3 5.024685263633728E-1 -2.178396582603455E-1 5.488687157630920E-1 -2.201396822929382E-1 8.519829809665680E-2 1.914665251970291E-1 174 | 1.680001600000000E+010 1.615693271160126E-1 7.890973240137100E-3 4.922322332859039E-1 -2.142413407564163E-1 5.485746860504150E-1 -2.177523374557495E-1 7.680837810039520E-2 2.078597843647003E-1 175 | 1.690001550000000E+010 1.693114489316940E-1 8.713861927390099E-3 4.858364462852478E-1 -1.961497366428375E-1 5.196310877799988E-1 -2.261584252119064E-1 7.834094762802124E-2 1.841200888156891E-1 176 | 1.700001500000000E+010 1.630352288484573E-1 7.765791844576597E-3 4.795416593551636E-1 -2.136949449777603E-1 4.614896178245544E-1 -2.126729190349579E-1 8.665777742862701E-2 2.148596495389938E-1 177 | 1.710001450000000E+010 1.561133563518524E-1 8.248739875853062E-3 5.290125608444214E-1 -2.278125733137131E-1 4.885839223861694E-1 -1.935753226280212E-1 7.585959136486054E-2 1.875807642936707E-1 178 | 1.720001400000000E+010 1.494047045707703E-1 8.096595294773579E-3 4.676742553710938E-1 -2.107720077037811E-1 4.827204644680023E-1 -2.091220915317535E-1 7.368465512990952E-2 2.136628925800324E-1 179 | 1.730001350000000E+010 1.486420035362244E-1 8.801992982625961E-3 4.899830222129822E-1 -2.104570716619492E-1 5.104485750198364E-1 -2.212061882019043E-1 7.333660870790482E-2 2.066231220960617E-1 180 | 1.740001300000000E+010 1.696367561817169E-1 8.085111156105995E-3 4.937225580215454E-1 -2.125844508409500E-1 5.005251169204712E-1 -2.224691212177277E-1 8.212637901306152E-2 2.007826417684555E-1 181 | 1.750001250000000E+010 1.663032770156860E-1 7.493309676647186E-3 4.878041744232178E-1 -2.153429538011551E-1 4.857272207736969E-1 -2.267905473709106E-1 8.484929054975510E-2 1.848269402980804E-1 182 | 1.760001200000000E+010 1.739819049835205E-1 8.751410990953445E-3 4.610122442245483E-1 -2.263201028108597E-1 5.060425400733948E-1 -2.236779034137726E-1 8.053330332040787E-2 1.855823993682861E-1 183 | 1.770001150000000E+010 1.480845957994461E-1 8.680657483637333E-3 5.140330195426941E-1 -2.231530547142029E-1 4.742452502250671E-1 -2.203335911035538E-1 8.150482922792435E-2 1.935035288333893E-1 184 | 1.780001100000000E+010 1.480478942394257E-1 7.411719765514135E-3 4.524620771408081E-1 -2.022650092840195E-1 5.054975748062134E-1 -2.063582539558411E-1 7.478930801153183E-2 2.157996147871018E-1 185 | 1.790001050000000E+010 1.516045480966568E-1 8.620987646281719E-3 5.455406308174133E-1 -1.913321465253830E-1 5.070131421089172E-1 -2.061265707015991E-1 7.273345440626144E-2 2.121357619762421E-1 186 | 1.800001000000000E+010 1.493610590696335E-1 8.518326096236706E-3 5.425783991813660E-1 -2.254802733659744E-1 5.327419042587280E-1 -2.125520110130310E-1 7.836708426475525E-2 1.988291591405869E-1 187 | 1.810000950000000E+010 1.621882319450378E-1 7.945998571813107E-3 4.567616283893585E-1 -2.043367475271225E-1 4.984492063522339E-1 -2.085202187299728E-1 7.654649019241333E-2 1.947539150714874E-1 188 | 1.820000900000000E+010 1.489296257495880E-1 8.320143446326256E-3 5.091366767883301E-1 -2.101484686136246E-1 4.611436426639557E-1 -1.934821456670761E-1 8.258915692567825E-2 2.132053822278976E-1 189 | 1.830000850000000E+010 1.619184464216232E-1 7.776577025651932E-3 5.336182117462158E-1 -2.094148844480515E-1 4.595790207386017E-1 -2.152038067579269E-1 7.393395900726318E-2 2.180173993110657E-1 190 | 1.840000800000000E+010 1.653055101633072E-1 8.974859490990639E-3 5.476827621459961E-1 -2.155896127223969E-1 5.177725553512573E-1 -2.003760039806366E-1 7.447030395269394E-2 2.073349654674530E-1 191 | 1.850000750000000E+010 1.662060767412186E-1 7.472487632185221E-3 4.832903742790222E-1 -2.082942724227905E-1 5.105772018432617E-1 -2.029812037944794E-1 7.429604232311249E-2 2.207973748445511E-1 192 | 1.860000700000000E+010 1.711482852697372E-1 8.118416182696819E-3 4.818245470523834E-1 -2.234945446252823E-1 4.932961165904999E-1 -2.039570510387421E-1 8.628988265991211E-2 1.884234845638275E-1 193 | 1.870000650000000E+010 1.628477722406387E-1 8.927923627197743E-3 5.497881770133972E-1 -2.001907378435135E-1 4.919856190681458E-1 -2.048321515321732E-1 8.569883555173874E-2 1.931058466434479E-1 194 | 1.880000600000000E+010 1.622834354639053E-1 8.068233728408814E-3 4.777239263057709E-1 -2.052777558565140E-1 4.568417370319367E-1 -2.027507722377777E-1 8.653675764799118E-2 2.071604281663895E-1 195 | 1.890000550000000E+010 1.485924124717712E-1 7.776527199894190E-3 5.237276554107666E-1 -2.077150046825409E-1 4.789115488529205E-1 -2.119073420763016E-1 8.513633906841278E-2 2.016316056251526E-1 196 | 1.900000500000000E+010 1.617716550827026E-1 8.665227331221104E-3 4.549622535705566E-1 -1.894159764051437E-1 4.675459265708923E-1 -2.076136320829392E-1 7.706638425588608E-2 2.198511809110642E-1 197 | 1.910000450000000E+010 1.656992584466934E-1 7.503995206207037E-3 4.567891955375671E-1 -2.198860943317413E-1 4.925643205642700E-1 -1.993208527565002E-1 8.395955711603165E-2 2.110137790441513E-1 198 | 1.920000400000000E+010 1.589638292789459E-1 8.296175859868527E-3 5.001795291900635E-1 -2.044720798730850E-1 4.867590665817261E-1 -2.262566536664963E-1 7.922098785638809E-2 1.956439912319183E-1 199 | 1.930000350000000E+010 1.760052144527435E-1 7.380612194538117E-3 4.737089574337006E-1 -2.180306613445282E-1 5.128153562545776E-1 -1.932000964879990E-1 8.227305859327316E-2 1.910813152790070E-1 200 | 1.940000300000000E+010 1.785710453987122E-1 8.188970386981964E-3 4.785134494304657E-1 -2.220982313156128E-1 4.909201264381409E-1 -2.065168917179108E-1 7.236459851264954E-2 2.237656265497208E-1 201 | 1.950000250000000E+010 1.624827831983566E-1 8.392995223402977E-3 4.839819967746735E-1 -2.016895264387131E-1 4.907302856445313E-1 -2.139496803283691E-1 8.678121119737625E-2 2.240797877311707E-1 202 | 1.960000200000000E+010 1.547198444604874E-1 8.526315912604332E-3 5.475053191184998E-1 -2.243925631046295E-1 4.840952455997467E-1 -1.859247088432312E-1 7.517462968826294E-2 2.122492045164108E-1 203 | 1.970000150000000E+010 1.658073663711548E-1 7.721551693975925E-3 4.952251017093658E-1 -2.145208418369293E-1 4.614314436912537E-1 -2.195189297199249E-1 8.104544878005981E-2 2.034005820751190E-1 204 | 1.980000100000000E+010 1.625214666128159E-1 7.832502014935017E-3 4.677017927169800E-1 -1.883522868156433E-1 5.105251073837280E-1 -1.937075406312943E-1 8.417787402868271E-2 1.994175761938095E-1 205 | 1.990000050000000E+010 1.584123820066452E-1 7.944251410663128E-3 5.254383087158203E-1 -2.044214904308319E-1 4.563303887844086E-1 -2.137129604816437E-1 7.505313307046890E-2 1.859177350997925E-1 206 | 2.000000000000000E+010 1.621287018060684E-1 8.904404938220978E-3 5.176838040351868E-1 -1.946673989295960E-1 4.665049016475678E-1 -1.940613538026810E-1 7.573276758193970E-2 2.160152941942215E-1 207 | -------------------------------------------------------------------------------- /file_transfer/commands/MMEM_DATA.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/file_transfer/commands/MMEM_DATA.pdf -------------------------------------------------------------------------------- /file_transfer/commands/MMEM_DEL.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/file_transfer/commands/MMEM_DEL.pdf -------------------------------------------------------------------------------- /file_transfer/commands/MMEM_MDIR.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/file_transfer/commands/MMEM_MDIR.pdf -------------------------------------------------------------------------------- /file_transfer/commands/MMEM_RDIR.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/file_transfer/commands/MMEM_RDIR.pdf -------------------------------------------------------------------------------- /file_transfer/read_file.py: -------------------------------------------------------------------------------- 1 | from rohdeschwarz.instruments.vna import Vna 2 | 3 | # Connect 4 | vna = Vna() 5 | vna.open_tcp() 6 | 7 | # For the purposes of demonstration: 8 | # - create set file (.znx) on vna 9 | # - wait for save to complete 10 | vna.save_active_set('read.znx') 11 | vna.query("*IDN?") 12 | 13 | # define filenames 14 | source = "C:\\Users\\Public\\Documents\\Rohde-Schwarz\\Vna\\RecallSets\\read.znx" 15 | local_dest = "read.znx" 16 | 17 | # Query contents of source 18 | scpi = "MMEM:DATA? '{0}'" 19 | scpi = scpi.format(source) 20 | vna.write(scpi) 21 | block_data = vna.read_raw_no_end() 22 | 23 | # Start parsing IEEE 388.2 block data transfer format 24 | # Header: # 25 | header_size = int(block_data[1]) 26 | file_start = 2 + header_size 27 | file_size = int(block_data[2:file_start]) 28 | 29 | # Sometimes the contents of the entire file 30 | # may not transfer at once. Keep reading 31 | # until everything is transferred 32 | while len(block_data) < 2 + header_size + file_size: 33 | block_data += vna.read_raw_no_end() 34 | 35 | file_contents = block_data[file_start:file_start+file_size] 36 | # Note: It's important to only read the amount 37 | # of data in the file, as an EOI may 38 | # sometimes follow the contents 39 | 40 | # Write file_contents to file 41 | f = open(local_dest, 'wb') 42 | f.write(file_contents) 43 | f.close() 44 | 45 | # Clean up: 46 | # Remove 'read.znx' from VNA 47 | # Wait for delete to finish 48 | vna.file.delete(source) 49 | vna.query("*OPC?") 50 | 51 | vna.close() -------------------------------------------------------------------------------- /file_transfer/write.znx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/file_transfer/write.znx -------------------------------------------------------------------------------- /file_transfer/write_file.py: -------------------------------------------------------------------------------- 1 | from rohdeschwarz.instruments.vna import Vna 2 | 3 | # Connect 4 | vna = Vna() 5 | vna.open_tcp() 6 | 7 | # Write local_file to dest 8 | local_file = "write.znx" 9 | dest = "C:\\Users\\Public\\Documents\\Rohde-Schwarz\\Vna\\RecallSets\\write.znx" 10 | 11 | data = open(local_file, 'rb').read() 12 | size_str = str(len(data)) 13 | header = "#{0}{1}".format(len(size_str), size_str) 14 | 15 | scpi = "MMEM:DATA '{0}', {1}{2}" 16 | scpi = scpi.format(dest, header, data) 17 | vna.write_raw_no_end(scpi) 18 | vna.write_raw_no_end('\n') # EOI sometimes necessary 19 | 20 | vna.close() -------------------------------------------------------------------------------- /fixture_compensation/commands/SENS_CORR_COLL_FIXT_ACQ.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/fixture_compensation/commands/SENS_CORR_COLL_FIXT_ACQ.pdf -------------------------------------------------------------------------------- /fixture_compensation/commands/SENS_CORR_COLL_FIXT_LMP.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/fixture_compensation/commands/SENS_CORR_COLL_FIXT_LMP.pdf -------------------------------------------------------------------------------- /fixture_compensation/commands/SENS_CORR_COLL_FIXT_LMP_LOSS.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/fixture_compensation/commands/SENS_CORR_COLL_FIXT_LMP_LOSS.pdf -------------------------------------------------------------------------------- /fixture_compensation/commands/SENS_CORR_COLL_FIXT_SAVE.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/fixture_compensation/commands/SENS_CORR_COLL_FIXT_SAVE.pdf -------------------------------------------------------------------------------- /fixture_compensation/commands/SENS_CORR_COLL_FIXT_STAR.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/fixture_compensation/commands/SENS_CORR_COLL_FIXT_STAR.pdf -------------------------------------------------------------------------------- /fixture_compensation/fixture_compensation.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | from rohdeschwarz.instruments.vna import Vna 3 | 4 | # Connect 5 | vna = Vna() 6 | vna.open_tcp() 7 | 8 | channel = 1; 9 | ports_string = "1,2,3,4" 10 | direct_comp = "OFF" # ON | OFF 11 | include_loss = "ON" # ON | OFF 12 | standard = "SHOR" # SHORt | OPEN 13 | 14 | # Start fixture compensation 15 | # This clears previous offsets 16 | scpi = "SENS{0}:CORR:COLL:FIXT:STAR" 17 | scpi = scpi.format(channel) 18 | vna.write(scpi) 19 | 20 | # Direct compensation 21 | # corrections generated per frequency point 22 | # rather than with an overall electrical 23 | # length estimate. 24 | scpi = "SENS{0}:CORR:COLL:FIXT:LMP {1}"; 25 | scpi = scpi.format(channel, direct_comp) 26 | vna.write(scpi) 27 | 28 | # include loss compensation 29 | # This setting is overridden if direct compensation 30 | # is on 31 | scpi = "SENS{0}:CORR:COLL:FIXT:LMP:LOSS {1}"; 32 | scpi = scpi.format(channel, include_loss) 33 | vna.write(scpi) 34 | 35 | # Measure a standard (short) at all ports 36 | scpi = "SENS{0}:CORR:COLL:FIXT:ACQ {1},{2}" 37 | scpi = scpi.format(channel, standard, ports_string) 38 | vna.write(scpi) 39 | vna.pause(10000) # wait for 10 s 40 | 41 | # Optional: 42 | # Can also measure another standard. 43 | # The VNA will use the average of both 44 | # results 45 | standard = "OPEN" 46 | scpi = "SENS{0}:CORR:COLL:FIXT:ACQ {1},{2}" 47 | scpi = scpi.format(channel, standard, ports_string) 48 | vna.write(scpi) 49 | vna.pause(10000) # wait for 10 s 50 | 51 | # Apply corrections 52 | scpi = "SENS{0}:CORR:COLL:FIXT:SAVE" 53 | scpi = scpi.format(channel) 54 | vna.write(scpi) 55 | vna.pause() 56 | 57 | vna.close() 58 | -------------------------------------------------------------------------------- /measure/Trc1.csv: -------------------------------------------------------------------------------- 1 | # Version 1.00 2 | # 3 | freq[Hz];Trc1_S21[dB]; 4 | 1.000000000000000E+005;-5.391265653150665E+000; 5 | 4.259950000000000E+007;-6.818339448790479E+000; 6 | 8.509900000000000E+007;-5.395515618849506E+000; 7 | 1.275985000000000E+008;-6.010762863329560E+000; 8 | 1.700980000000000E+008;-5.844528449207202E+000; 9 | 2.125975000000000E+008;-5.991289982446034E+000; 10 | 2.550970000000000E+008;-6.675670733073400E+000; 11 | 2.975965000000000E+008;-5.578434734600651E+000; 12 | 3.400960000000000E+008;-5.514905103627181E+000; 13 | 3.825955000000000E+008;-5.295649248168046E+000; 14 | 4.250950000000000E+008;-5.730495605037048E+000; 15 | 4.675945000000000E+008;-5.467442653715499E+000; 16 | 5.100940000000000E+008;-5.714441330537595E+000; 17 | 5.525935000000000E+008;-5.115755646202450E+000; 18 | 5.950930000000000E+008;-4.722653812182094E+000; 19 | 6.375925000000000E+008;-4.436253542765389E+000; 20 | 6.800920000000000E+008;-5.841869522981567E+000; 21 | 7.225915000000000E+008;-4.219112398927187E+000; 22 | 7.650910000000000E+008;-4.457862363083323E+000; 23 | 8.075905000000000E+008;-4.623118220659173E+000; 24 | 8.500900000000000E+008;-5.523087130490759E+000; 25 | 8.925895000000000E+008;-5.118684090168262E+000; 26 | 9.350890000000000E+008;-4.859216561546974E+000; 27 | 9.775885000000000E+008;-5.139438893774453E+000; 28 | 1.020088000000000E+009;-5.345291302844048E+000; 29 | 1.062587500000000E+009;-4.589767438836376E+000; 30 | 1.105087000000000E+009;-4.635335238056663E+000; 31 | 1.147586500000000E+009;-4.503585786474141E+000; 32 | 1.190086000000000E+009;-5.605724425853424E+000; 33 | 1.232585500000000E+009;-5.513536527601319E+000; 34 | 1.275085000000000E+009;-5.973781677312698E+000; 35 | 1.317584500000000E+009;-5.139534648678518E+000; 36 | 1.360084000000000E+009;-5.255787602728189E+000; 37 | 1.402583500000000E+009;-5.810683928395047E+000; 38 | 1.445083000000000E+009;-6.288542473742469E+000; 39 | 1.487582500000000E+009;-6.669353395873126E+000; 40 | 1.530082000000000E+009;-6.068645802155980E+000; 41 | 1.572581500000000E+009;-7.128923182957002E+000; 42 | 1.615081000000000E+009;-6.613092206278697E+000; 43 | 1.657580500000000E+009;-6.489902858544870E+000; 44 | 1.700080000000000E+009;-6.406114352823808E+000; 45 | 1.742579500000000E+009;-6.154749600285791E+000; 46 | 1.785079000000000E+009;-6.937839335133978E+000; 47 | 1.827578500000000E+009;-6.125197318567310E+000; 48 | 1.870078000000000E+009;-6.517613188827465E+000; 49 | 1.912577500000000E+009;-5.601087448060614E+000; 50 | 1.955077000000000E+009;-5.992803606935566E+000; 51 | 1.997576500000000E+009;-6.392843817084407E+000; 52 | 2.040076000000000E+009;-5.495847889076821E+000; 53 | 2.082575500000000E+009;-5.877503432618020E+000; 54 | 2.125075000000000E+009;-6.447339125699770E+000; 55 | 2.167574500000000E+009;-6.356531053436392E+000; 56 | 2.210074000000000E+009;-5.551666104001730E+000; 57 | 2.252573500000000E+009;-5.594602672049987E+000; 58 | 2.295073000000000E+009;-5.201568976285741E+000; 59 | 2.337572500000000E+009;-6.140363845217011E+000; 60 | 2.380072000000000E+009;-5.051885746688916E+000; 61 | 2.422571500000000E+009;-4.473936682230918E+000; 62 | 2.465071000000000E+009;-5.298099848992401E+000; 63 | 2.507570500000000E+009;-4.913261326299634E+000; 64 | 2.550070000000000E+009;-4.695475532890509E+000; 65 | 2.592569500000000E+009;-4.935607683509991E+000; 66 | 2.635069000000000E+009;-4.993428127410786E+000; 67 | 2.677568500000000E+009;-5.848729919570469E+000; 68 | 2.720068000000000E+009;-4.956623790947227E+000; 69 | 2.762567500000000E+009;-5.378755662910518E+000; 70 | 2.805067000000000E+009;-5.346765828580077E+000; 71 | 2.847566500000000E+009;-5.686867839314892E+000; 72 | 2.890066000000000E+009;-5.612313754503074E+000; 73 | 2.932565500000000E+009;-5.760606839217527E+000; 74 | 2.975065000000000E+009;-6.330935883337246E+000; 75 | 3.017564500000000E+009;-7.097815123221180E+000; 76 | 3.060064000000000E+009;-6.674266600718600E+000; 77 | 3.102563500000000E+009;-6.167420138756270E+000; 78 | 3.145063000000000E+009;-7.221919054522086E+000; 79 | 3.187562500000000E+009;-7.480087102559635E+000; 80 | 3.230062000000000E+009;-7.926744859078360E+000; 81 | 3.272561500000000E+009;-7.653676484616009E+000; 82 | 3.315061000000000E+009;-7.486921132183751E+000; 83 | 3.357560500000000E+009;-7.044663284292255E+000; 84 | 3.400060000000000E+009;-7.139629687383787E+000; 85 | 3.442559500000000E+009;-6.626212800715967E+000; 86 | 3.485059000000000E+009;-6.605010086645514E+000; 87 | 3.527558500000000E+009;-5.716820103979710E+000; 88 | 3.570058000000000E+009;-6.622633002695460E+000; 89 | 3.612557500000000E+009;-5.723387075120567E+000; 90 | 3.655057000000000E+009;-5.318532867913934E+000; 91 | 3.697556500000000E+009;-6.804505069464205E+000; 92 | 3.740056000000000E+009;-5.495416781192933E+000; 93 | 3.782555500000000E+009;-6.557697726240703E+000; 94 | 3.825055000000000E+009;-5.931256325982578E+000; 95 | 3.867554500000000E+009;-6.032762135012332E+000; 96 | 3.910054000000000E+009;-4.956109503207668E+000; 97 | 3.952553500000000E+009;-6.021427228837460E+000; 98 | 3.995053000000000E+009;-4.968867221761439E+000; 99 | 4.037552500000000E+009;-5.390365529343313E+000; 100 | 4.080052000000000E+009;-4.874378181619073E+000; 101 | 4.122551500000000E+009;-5.676237358997106E+000; 102 | 4.165051000000000E+009;-5.404263543306539E+000; 103 | 4.207550500000000E+009;-5.530514677480377E+000; 104 | 4.250050000000000E+009;-5.233728123826491E+000; 105 | 4.292549500000000E+009;-5.851394442598438E+000; 106 | 4.335049000000000E+009;-6.082737707727214E+000; 107 | 4.377548500000000E+009;-5.021936680647832E+000; 108 | 4.420048000000000E+009;-5.965965605343284E+000; 109 | 4.462547500000000E+009;-5.503740755081252E+000; 110 | 4.505047000000000E+009;-6.131230389670790E+000; 111 | 4.547546500000000E+009;-5.565373941564404E+000; 112 | 4.590046000000000E+009;-5.650973014628583E+000; 113 | 4.632545500000000E+009;-7.023389323449997E+000; 114 | 4.675045000000000E+009;-6.547741323609468E+000; 115 | 4.717544500000000E+009;-7.210094879773287E+000; 116 | 4.760044000000000E+009;-8.415716239981359E+000; 117 | 4.802543500000000E+009;-7.441708333819342E+000; 118 | 4.845043000000000E+009;-8.508384090554035E+000; 119 | 4.887542500000000E+009;-8.251816036947366E+000; 120 | 4.930042000000000E+009;-8.810235562986589E+000; 121 | 4.972541500000000E+009;-9.115677393536153E+000; 122 | 5.015041000000000E+009;-9.492834735088229E+000; 123 | 5.057540500000000E+009;-1.150066107555180E+001; 124 | 5.100040000000000E+009;-1.469406250821371E+001; 125 | 5.142539500000000E+009;-1.344339926977658E+001; 126 | 5.185039000000000E+009;-9.703715345989979E+000; 127 | 5.227538500000000E+009;-7.630312794390309E+000; 128 | 5.270038000000000E+009;-7.057905472810685E+000; 129 | 5.312537500000000E+009;-7.484767686216594E+000; 130 | 5.355037000000000E+009;-5.866593376308189E+000; 131 | 5.397536500000000E+009;-7.075943553544500E+000; 132 | 5.440036000000000E+009;-6.018488847764850E+000; 133 | 5.482535500000000E+009;-5.706031497554928E+000; 134 | 5.525035000000000E+009;-6.597585666093177E+000; 135 | 5.567534500000000E+009;-6.099239829635716E+000; 136 | 5.610034000000000E+009;-5.509564087434421E+000; 137 | 5.652533500000000E+009;-6.296434727085859E+000; 138 | 5.695033000000000E+009;-5.431263689269676E+000; 139 | 5.737532500000000E+009;-5.526752197566812E+000; 140 | 5.780032000000000E+009;-6.152286820090994E+000; 141 | 5.822531500000000E+009;-4.894444727647888E+000; 142 | 5.865031000000000E+009;-4.640677538064754E+000; 143 | 5.907530500000000E+009;-5.364532665170284E+000; 144 | 5.950030000000000E+009;-5.316942633519445E+000; 145 | 5.992529500000000E+009;-5.617855723014125E+000; 146 | 6.035029000000000E+009;-5.450551541059148E+000; 147 | 6.077528500000000E+009;-4.622087182352362E+000; 148 | 6.120028000000000E+009;-4.748319851762194E+000; 149 | 6.162527500000000E+009;-5.430066953175352E+000; 150 | 6.205027000000000E+009;-4.892052892514524E+000; 151 | 6.247526500000000E+009;-5.808495998972152E+000; 152 | 6.290026000000000E+009;-4.851704876195959E+000; 153 | 6.332525500000000E+009;-5.637255440758946E+000; 154 | 6.375025000000000E+009;-4.878297260904801E+000; 155 | 6.417524500000000E+009;-5.936739018795608E+000; 156 | 6.460024000000000E+009;-4.680318640414546E+000; 157 | 6.502523500000000E+009;-5.884421700303538E+000; 158 | 6.545023000000000E+009;-5.795086311534422E+000; 159 | 6.587522500000000E+009;-5.159940334743154E+000; 160 | 6.630022000000000E+009;-4.891023559067057E+000; 161 | 6.672521500000000E+009;-5.032333104320628E+000; 162 | 6.715021000000000E+009;-5.742004292414720E+000; 163 | 6.757520500000000E+009;-5.592338229938636E+000; 164 | 6.800020000000000E+009;-5.790957467980146E+000; 165 | 6.842519500000000E+009;-5.269771618580394E+000; 166 | 6.885019000000000E+009;-4.888894688919343E+000; 167 | 6.927518500000000E+009;-5.423721489221417E+000; 168 | 6.970018000000000E+009;-5.337766315883935E+000; 169 | 7.012517500000000E+009;-5.771747093262102E+000; 170 | 7.055017000000000E+009;-5.558925301073599E+000; 171 | 7.097516500000000E+009;-5.042750313534046E+000; 172 | 7.140016000000000E+009;-5.855571565556513E+000; 173 | 7.182515500000000E+009;-4.909082309326323E+000; 174 | 7.225015000000000E+009;-5.419979290258755E+000; 175 | 7.267514500000000E+009;-4.643333070414652E+000; 176 | 7.310014000000000E+009;-5.786444467265330E+000; 177 | 7.352513500000000E+009;-5.135701816880900E+000; 178 | 7.395013000000000E+009;-5.116294215236120E+000; 179 | 7.437512500000000E+009;-4.615588657788906E+000; 180 | 7.480012000000000E+009;-5.194775593816883E+000; 181 | 7.522511500000000E+009;-5.123424445290198E+000; 182 | 7.565011000000000E+009;-5.050108481350013E+000; 183 | 7.607510500000000E+009;-4.658929084972495E+000; 184 | 7.650010000000000E+009;-5.600586937962984E+000; 185 | 7.692509500000000E+009;-5.573682048961469E+000; 186 | 7.735009000000000E+009;-5.366974947082916E+000; 187 | 7.777508500000000E+009;-4.714183375972158E+000; 188 | 7.820008000000000E+009;-4.825946658458356E+000; 189 | 7.862507500000000E+009;-5.678139672482240E+000; 190 | 7.905007000000000E+009;-5.255013918518014E+000; 191 | 7.947506500000000E+009;-5.006340917876784E+000; 192 | 7.990006000000000E+009;-5.604206721765960E+000; 193 | 8.032505500000000E+009;-5.645434755599059E+000; 194 | 8.075005000000000E+009;-5.395133452800167E+000; 195 | 8.117504500000000E+009;-5.483147851789351E+000; 196 | 8.160004000000000E+009;-5.050277291628349E+000; 197 | 8.202503500000000E+009;-5.946288037472069E+000; 198 | 8.245003000000000E+009;-5.712248339181483E+000; 199 | 8.287502500000000E+009;-5.862123565858640E+000; 200 | 8.330002000000000E+009;-5.443787169572493E+000; 201 | 8.372501500000000E+009;-4.785308043225044E+000; 202 | 8.415001000000000E+009;-5.901135378293168E+000; 203 | 8.457500500000000E+009;-5.639424149035040E+000; 204 | 8.500000000000000E+009;-5.132338251881023E+000; 205 | -------------------------------------------------------------------------------- /measure/commands/CALC_PAR_DEF_SGR.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/measure/commands/CALC_PAR_DEF_SGR.pdf -------------------------------------------------------------------------------- /measure/commands/INIT.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/measure/commands/INIT.pdf -------------------------------------------------------------------------------- /measure/commands/INIT_CONT_ALL.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/measure/commands/INIT_CONT_ALL.pdf -------------------------------------------------------------------------------- /measure/commands/INIT_SCOP.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/measure/commands/INIT_SCOP.pdf -------------------------------------------------------------------------------- /measure/commands/MMEM_STOR_TRAC.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/measure/commands/MMEM_STOR_TRAC.pdf -------------------------------------------------------------------------------- /measure/commands/MMEM_STOR_TRAC_PORT.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/measure/commands/MMEM_STOR_TRAC_PORT.pdf -------------------------------------------------------------------------------- /measure/measure.py: -------------------------------------------------------------------------------- 1 | from rohdeschwarz.instruments.vna import Vna 2 | 3 | # Connect 4 | vna = Vna() 5 | vna.open_tcp() 6 | 7 | # For touchstone file: 8 | channel = 1 9 | ports_string = "1,2,3,4" 10 | touchstone_filename = "ch1_data.s4p" 11 | 12 | # For trace data: 13 | trace_name = "Trc1" 14 | trace_filename = "Trc1.csv" 15 | 16 | # Indicate which ports you want to 17 | # capture data for before starting sweep 18 | # Note: This must be done for each channel 19 | # Using channel 1 for illustrative purposes: 20 | channel = 1 21 | scpi = ":CALC{0}:PAR:DEF:SGR {1}" 22 | scpi = scpi.format(channel, ports_string) 23 | vna.write(scpi) 24 | 25 | # Enable manual sweep mode 26 | # (i.e. control timing) 27 | vna.write("INIT:CONT:ALL 0") 28 | 29 | # Start all sweeps 30 | vna.write("INIT:SCOP ALL") 31 | vna.write("INIT") 32 | 33 | # Wait for sweeps to finish 34 | # Note: Make sure timeout is long 35 | # enough for sweeps to complete 36 | vna.query("*OPC?") 37 | 38 | # Save touchstone file to vna 39 | # Complex formats are: 40 | # - COMP (Re, Im) 41 | # - LINP (Linear magnitude, phase [deg]) 42 | # - LOGP (Log magnitude [dB], phase [deg]) 43 | complex_format = "COMP" 44 | scpi = ":MMEM:STOR:TRAC:PORT {0},'{1}',{2},{3}" 45 | scpi = scpi.format(channel, 'temp.s4p', complex_format, ports_string) 46 | vna.write(scpi) 47 | 48 | # Save trace data to vna as 49 | # displayed on screen 50 | # Note: See command documentation for 51 | # additional data format options 52 | scpi = ":MMEM:STOR:TRAC '{0}', '{1}', FORM" 53 | scpi = scpi.format(trace_name, 'temp.csv') 54 | vna.write(scpi) 55 | 56 | # Wait for saves to complete 57 | vna.query("*OPC?") 58 | 59 | # Transfer files from vna 60 | # - See read_file.py 61 | vna.file.download_file("temp.s4p", touchstone_filename) 62 | vna.file.download_file("temp.csv", trace_filename) 63 | 64 | # Delete files from vna 65 | vna.file.delete("temp.s4p") 66 | vna.file.delete("temp.csv") 67 | 68 | vna.close() -------------------------------------------------------------------------------- /properties/properties.py: -------------------------------------------------------------------------------- 1 | from rohdeschwarz.instruments.vna import Vna 2 | 3 | # Connect 4 | vna = Vna() 5 | vna.open_tcp() 6 | 7 | # Parse ID String 8 | # Example: 9 | # "Rohde-Schwarz,ZNBT8-16Port,1318700624100104,2.70" 10 | # Manufacturer [0]: Rohde-Schwarz 11 | # Model [1]: ZNBT8-16Port 12 | # Serial No [2]: 1318700624100104 13 | # Firmware Ver [3]: 2.70 14 | [manufacturer, model, serial_no, firmware_ver] = vna.query("*IDN?").split(",") 15 | 16 | # Query number of physical ports 17 | scpi = ":INST:PORT:COUN?" 18 | ports = int(vna.query(scpi)) # => 16 19 | print("Ports: {0}".format(ports)) 20 | 21 | # Query max frequency 22 | scpi = ":SYST:FREQ? MAX" 23 | max_freq_Hz = float(vna.query(scpi)) # => 8.5E9 (8.5 GHz) 24 | print("Max Freq: {0:.3e} Hz".format(max_freq_Hz)) 25 | 26 | # Query min frequency 27 | scpi = ":SYST:FREQ? MIN" 28 | min_freq_Hz = float(vna.query(scpi)) # => 9.0E3 (300 KHz) 29 | print("Min Freq: {0:.3e} Hz".format(min_freq_Hz)) 30 | 31 | vna.close() 32 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | SCPI Command Examples 2 | ===================== 3 | This project contains several Rohde & Schwarz VNA programming examples to help you get started. The examples are in python, but they all use raw SCPI commands and can be translated with a little effort into any language. Each script is commented liberally to help in this regard. 4 | 5 | The examples are divided into sections. SCPI command documentation is also included in the `commands\` folders for each section. This documentation comes from the ZNB manual. 6 | 7 | Sections 8 | -------- 9 | 10 | The examples are organized into the following sections, with a folder corresponding to each: 11 | 12 | ### Properties 13 | Query the VNA model, number of ports and frequency range to make sure that it suits your needs before you start measurement. 14 | 15 | ### Autocal 16 | Programmatically control calibration with an autocal unit as part of your test automation. 17 | 18 | ### Deembedding 19 | Apply deembedding for each port from touchstone (`s2p`) files. 20 | 21 | ### Fixture Compensation 22 | Compensate for the electrical length of a fixture path, used frequently in time-domain skew measurements. 23 | 24 | ### Cal Groups 25 | Save calibrations and recall previous calibrations. 26 | 27 | ### File Transfer 28 | Read (download) and write (upload) files to and from the VNA 29 | 30 | ### Measure 31 | Examples on performing the following: 32 | - Performing a synchronous sweep 33 | - Saving a touchstone (`snp`) file 34 | - Saving trace data to a `csv` file 35 | 36 | ### Screenshots 37 | After performing the measurement as outlined in the section above, save screenshots of individual diagrams or the entire screen to file. 38 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | rohdeschwarz>=0.6.6.dev1 2 | -------------------------------------------------------------------------------- /screenshots/commands/HCOP.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/screenshots/commands/HCOP.pdf -------------------------------------------------------------------------------- /screenshots/commands/HCOP_DEST.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/screenshots/commands/HCOP_DEST.pdf -------------------------------------------------------------------------------- /screenshots/commands/HCOP_DEV_LANG.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/screenshots/commands/HCOP_DEV_LANG.pdf -------------------------------------------------------------------------------- /screenshots/commands/HCOP_PAGE_WIND.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/screenshots/commands/HCOP_PAGE_WIND.pdf -------------------------------------------------------------------------------- /screenshots/commands/MMEM_NAME.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Terrabits/vna-scpi-examples/be9a80ca0bc37328caa9a712fcfa588ad40515e0/screenshots/commands/MMEM_NAME.pdf -------------------------------------------------------------------------------- /screenshots/screenshot.py: -------------------------------------------------------------------------------- 1 | from rohdeschwarz.instruments.vna import Vna 2 | 3 | # Connect 4 | vna = Vna() 5 | vna.open_tcp() 6 | 7 | temp_filename = 'temp.png' 8 | local_filename = 'screenshot.png' 9 | 10 | # Set temporary file name to 11 | # save to (on vna) 12 | scpi = ":MMEM:NAME '{0}'" 13 | scpi = scpi.format(temp_filename) 14 | vna.write(scpi) 15 | 16 | # Set format 17 | # Options include: 18 | # - BMP 19 | # - PNG 20 | # - JPG 21 | # - PDF 22 | # - SVG 23 | vna.write(":HCOP:DEV:LANG PNG") 24 | 25 | # Set contents of screenshot 26 | # to entire screen 27 | vna.write(":HCOP:PAGE:WIND HARD") 28 | 29 | # - OR ------------------------- 30 | # Set active diagram 31 | # Unfortunately there isn't an 32 | # explicit command for this, so 33 | # I perform a trivial operation 34 | # on a diagram to make it active 35 | diagram = 1 36 | scpi = "DISP:WIND{0}:MAX 0" 37 | scpi = scpi.format(diagram) 38 | vna.write(scpi) 39 | 40 | # Set contents of screenshot 41 | # to active diagram 42 | scpi = ":HCOP:PAGE:WIND ACT" 43 | vna.write(scpi) 44 | # ------------------------------ 45 | 46 | # Set destination to file 47 | # (not printer) 48 | vna.write("HCOP:DEST 'MMEM'") 49 | 50 | # Save file 51 | # Wait for save to complete 52 | vna.write(":HCOP") 53 | vna.query("*OPC?") 54 | 55 | # Copy screenshot off vna 56 | # (See file_transfer.py for details) 57 | vna.file.download_file(temp_filename, local_filename) 58 | 59 | # Delete temp file off vna 60 | # Wait for delete to complete 61 | scpi = "MMEM:DEL '{0}'" 62 | scpi = scpi.format(temp_filename) 63 | vna.write(scpi) 64 | vna.query("*OPC?") 65 | 66 | vna.close() --------------------------------------------------------------------------------