picovna with python

Post general discussions on using our drivers to write your own software here
Post Reply
virtalf
Newbie
Posts: 0
Joined: Wed Dec 11, 2019 8:42 am

picovna with python

Post by virtalf » Thu Dec 12, 2019 8:30 am

Hi~
I can't get data from picovna 106 with python.
first: "loadcal" function always shows "Error". if technical team need cal and python files, I will send them.
Second: Anyway, it shows below message after calling Measure function first time. Next time calling measure function return ''. GetData function always show same data after that. SF 000144 is used as calibration kit
---------------------------------------------------------------------------
com_error Traceback (most recent call last)
in
1 for i in range(5):
----> 2 picoVNACOMObj.Measure('ALL')
3 raw = picoVNACOMObj.GetData("S11","logmag",0)
4 picoVNACOMObj.GetMem("S11")
5 print(i, " : ", raw)

C:\------\AppData\Local\Temp\gen_py\3.7\2060C37E-D05E-4D5B-AB88-E29373C3C8ECx0x1x0\_PicoVNA_2.py in Measure(self, para)
114 def Measure(self, para=defaultNamedNotOptArg):
115 # Result is a Unicode object
--> 116 return self._oleobj_.InvokeTypes(1610809366, LCID, 1, (8, 0), ((12, 1),),para
117 )
118

com_error: (-2147352567, 'Exception ', (0, 'PicoControl2', 'Overflow', None, 1000006, -2146828282), None)
---------------------------------------------------------------------------

PicoVNA status is below.
---------------------------------------
ApplyDem : Off
AverSet : 1
BWSet : 1000
CalType : S11
CalPower : 3
CalAver : 1
CalKit1 : SF 000144
Calkit2 : SF 000144
CWMode : False
CFreqPlan : 1500000000,3500000000,5000000,401,3
Dem1 : Not loaded
Dem2 : Not loaded
ErrFlag : OK
ExMatch : 0
RefP : 0, 1
FreqPlan : 1500000000,3500000000,5000000,401,0
Interpol : No
KitSex1 : Female
KitSex2 : Female
KitC1 : 0,0,0,0
KitC2 : 0,0,0,0
KitInd1 : Error
KitInd2 : 0
KitOpenOff1 : 2.879426E-02,9.623816E-11
KitOpenOff2 : 2.879426E-02,9.623816E-11
KitShortOff1 : 2.879426E-02,9.604731E-11
KitShortOff2 : 2.879426E-02,9.604731E-11
KitOpenOffLoss1 : 0
KitOpenOffLoss2 : 0
KitShortOffLoss1 : 0
KitShortOffLoss2 : 0
KitL1 : 1
KitL2 : 1
KitD1 : ---- data ---
KitD2 : ---- data ----
Model : LA19-13-04
TDP : -5,50,0.1375,Auto,Rect
SmooSet : 3
SN : 8694
HWSN : 0000
Stat : R
SysZo : 50
--------------------------------------------------------------------------------------

Post Reply