Products > Test Equipment

Slow data transfer DS1054Z (python ds1054z)

<< < (3/3)

Fungus:

--- Quote from: alm on January 19, 2023, 11:46:37 am ---You'd have to study a pcap trace with and without TCP_NODELAY to be sure, but my guess is that it somehow affects the timing of the ACKs sent back to the scope, and that the scope has a ridiculously small window size. RoGeorge clearly showed a large difference in the previous thread I linked from my first post in this thread.

--- End quote ---

I guess it could have an effect if there's some sort of very weird bug in the Windows IP code but that seems very unlikely given the number of people hammering on it every day.

It's not something to do with NODELAY per. se. though.

Flash375:
I am using this https://pypi.org/project/ds1054z/ "library" . I don't know it this library uses python-vxi11 (I am kind of new to python).
Suggestion from the post was, that one should change file tcpip.py which is located in pyvisa_py folder (\AppData\Roaming\Python\Python311\site-packages\pyvisa_py)

I added the line as suggested by you (code bellow) but the speed isn't any better (cca. 8,7s for 120kPts)  :(


--- Code: ---from ds1054z import DS1054Z
import time
import socket

#Input IP adress of scope (Manually: Scope->Utility->IO settings-> LAN Conf.)
scope = DS1054Z('169.254.14.84')
#Added line from EEV forum
scope.client.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
#Print scope idn to verify connection
print("Connected to: ", scope.idn)

--- End code ---

Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod