Terrabits / rohdeschwarz

Rohde & Schwarz python instrument control toolbox
https://vna.rs-us.net/python/
Other
37 stars 18 forks source link

speeding up tcpIP connection #11

Closed christophmas closed 10 months ago

christophmas commented 1 year ago

Every Tcp Request needs 0.2s which makes measurements quite slow. Now there is now delay before sending.

Furthermore as a remark, there are few places in code, where an arbitrary pause is introduced. Imho, this can be removed, too. At least I do not had any Issues about that.

onealj commented 1 year ago

https://stackoverflow.com/a/34010256 TCP_NODELAY trades off throughput for latency by writing immediately rather than combining multiple SCPI commands into a single 4K IP packet. It's probably worth testing this with a variety of workloads to see if this is "always better".