Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

added code to handle rigol quirks in read_raw#18

Merged
alexforencich merged 1 commit into
python-ivi:masterfrom
jeremyherbert:rigol_fix
Jan 6, 2016
Merged

added code to handle rigol quirks in read_raw#18
alexforencich merged 1 commit into
python-ivi:masterfrom
jeremyherbert:rigol_fix

Conversation

@jeremyherbert
Copy link
Copy Markdown
Contributor

Unfortunately, the Rigol implementation of the USBTMC spec is, uh, unique. The following problems exist (based on my own observations and looking at the linux kernel usbtmc driver):

  1. The USBTMC header only comes with the first packet
  2. If you resend the dev_dep_msg_in header, you restart the transaction from the beginning
  3. The USBTMC header always has the end of message bit set, even if it isn't the end of the message
  4. The USBTMC header will only list a maximum transfer size of 500, regardless of whether there are more than 500 bytes to transfer. This is almost always true when an IEEE 488.2 block is involved.

I honestly don't know how they messed this up so badly.

This PR should allow Rigol devices to function with python-usbtmc by working around these problems. I tested it with my Rigol DS1104Z.

@alexforencich alexforencich merged commit b19ef5d into python-ivi:master Jan 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants