-
I am working on trying to extent the Agilent 8722 instrument code to the Hewlett Packard 8753E using PyMeasure 0.13.1 with a Prologix GPIB to USB adapter using pyvisa-py 0.7.0 So far, the simple commands seem to work such as reading and writing the number of points to use and check the IDN of the device. When I go to read a VNA sweep that is > 163 points from the VNA, I only am able to see 163 of the total points. My instrument code so far is:
Checking that the instrument connects and works
Returns Trying to read a 101 point sweep
Results
Now when I sweep more than 163 points I get this as the result
I can access the prologix adapter directly using pyvisa and read 201 to 1601 point sweeps, I'm not sure what I am doing wrong here to get a >101 point sweep. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I added another print line to check the vna.points:
Running this yields:
|
Beta Was this translation helpful? Give feedback.
-
Figured out my solution: instead of
buffer looks like this:
which I can convert to complex numbers and manipulate now. |
Beta Was this translation helpful? Give feedback.
Figured out my solution:
instead of
vna.read()
I needed to callvna.read_bytes(50)
for reading 50 bytes from the buffer at a time as fast as possible to avoid losing data points