Products > Test Equipment
Slow data transfer DS1054Z (python ds1054z)
(1/3) > >>
Flash375:
I am having trouble transferring data of ds1054z scope to the PC via LAN. Data transfer of 24Mpts takes around 30 min.
I am using python and ds1054z "package" (code is attached). If i transfer BYTES instead of ASCII, transfer time isn't much better (cca. 1sec better on 1.2M samples).

Transfer times for different number of samples are:
Memory depth : 12k   ->   Transfer time:1.48s
Memory depth : 120k  ->  Transfer time:8.48s
Memory depth : 1.2M  ->  Transfer time:83.62s


Does anybody have an idea what is the reason for such long transfer times?

Specs:
Win 10
Python 3.11.1
DS1054z -> Lan cable -> LAN/USB adapter (IB-LAN100-C3)-> PC
alm:
Try setting the socket options for the TCP/IP connection to the DS1054Z so TCPIP_NODELAY is on: https://www.eevblog.com/forum/testgear/download-speed-from-rigol-ds1054z-or-similar-oscilloscope-to-a-pc/msg4528943/#msg4528943. There appears to be a bug in the DS1054Z TCP/IP stack that causes really bad performance unless the NODELAY socket option is set.
Flash375:
Thank you for your answer and link. It didn't solve my problem, but gonna read thru linked topic for additional info.
alm:
The exact syntax to set the NODELAY flag will be somewhat different, I imagine. Let me know if you need help with that, and I'll take a look at how to do that with ds1054z.py.
Flash375:
Thank you for your offer. I would be glad if you could help me.
So far I have tried to add line to the tcpip.py as suggested by the post (sent link)

--- Code: ---self._set_tcpip_nodelay(constants.VI_ATTR_TCPIP_NODELAY, True)

--- End code ---

I added the line of code to the end of _connect(self) -> StatusCode definition, because it didn't do anything I added the line after line 840, as also suggested by the post. In both cases the transfer is slow.
           

Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod