Conversation
…c Kuzmenko) in this PR : github.com/sigrokproject/pull/176/ Created a new protocol version "E11" matching the latest Siglent SDS Scope programming guide. Reduced the read-wait time from 7sec to 50ms for better performance (achived by looping on read sample logic to consume the data has it arrives). Tested with SDS2504X HD model connected via Ethernet cable.
…0X HD, 3000X HD, 5000, 6000 and 7000.
…ing communication stack to get the data from the device.
Fixed compilation warnings.
Read block length from block header for both analog and digital channels. Added use of WAV:POIN to specify block length as suggested in Siglent code exmaples.
…isition. Removed unused SCPI commands for E11 prtocol
…o 5mV instead of 500 uV). Fixed vertical ranges lower than 10mV for E11 models.
.gitignore
Outdated
| /tests/*.log | ||
| /tests/*.trs | ||
| /tests/main | ||
| .vscode/ |
There was a problem hiding this comment.
I'd suggest moving this to line 18, it might help accelerate the merging
| static const uint64_t vdivs[][2] = { | ||
| /* microvolts */ | ||
| { 500, 100000 }, | ||
| { 500, 1000000 }, |
There was a problem hiding this comment.
Maybe we'd want to split this to another bugfix PR, although it depends on the maintainers.
| { 50, 1 }, { 2, 1000 }, 18, 8, 1400363}, | ||
| { 50, 1 }, { 2, 1000 }, 18, 8, 25, 1400363}, | ||
| [SDS1000CNL] = {VENDOR(SIGLENT), "SDS1000CNL", NON_SPO_MODEL, | ||
| { 50, 1 }, { 2, 1000 }, 18, 8, 1400363}, | ||
| { 50, 1 }, { 2, 1000 }, 18, 8, 25, 1400363}, | ||
| [SDS1000DL] = {VENDOR(SIGLENT), "SDS1000DL", NON_SPO_MODEL, | ||
| { 50, 1 }, { 2, 1000 }, 18, 8, 1400363}, | ||
| { 50, 1 }, { 2, 1000 }, 18, 8, 25, 1400363}, | ||
| [SDS1000X] = {VENDOR(SIGLENT), "SDS1000X", SPO_MODEL, | ||
| { 50, 1 }, { 500, 100000 }, 14, 8, 14000363}, | ||
| { 50, 1 }, { 500, 1000000 }, 14, 8, 25, 14000363}, | ||
| [SDS1000XP] = {VENDOR(SIGLENT), "SDS1000X+", SPO_MODEL, | ||
| { 50, 1 }, { 500, 100000 }, 14, 8, 14000363}, | ||
| { 50, 1 }, { 500, 1000000 }, 14, 8, 25, 14000363}, | ||
| [SDS1000XE] = {VENDOR(SIGLENT), "SDS1000XE", ESERIES, | ||
| { 50, 1 }, { 500, 100000 }, 14, 8, 14000363}, | ||
| { 50, 1 }, { 500, 1000000 }, 14, 8, 25, 14000363}, |
There was a problem hiding this comment.
Same as above, maybe split into another bugfix PR
src/hardware/siglent-sds/api.c
Outdated
| case 100000: | ||
| cmd = g_strdup_printf("%" PRIu64 "UV", p); | ||
| break; |
There was a problem hiding this comment.
Since we fixed the bug on uV being 10^5, maybe this should be 1,000,000 too?
doge-gif
left a comment
There was a problem hiding this comment.
Thanks for the PR!
May I suggest a few changes, so hopefully the merge will be faster?
(And no, I'm not a maintainer. Just another fella owning one of those scopes)
Thanks for the feedback @doge-gif ! I'll take your proposals (but I'm not creating a separate PR). |
| /* SDS2000X+: Since the LA sample rate is a fraction of the sample rate of the analog channels, | ||
| * there needs to be repeated "fake" samples inserted after each "real" sample | ||
| * in order to make the output match the timebase of an enabled analog channel. | ||
| * The scaling by a factor of 2.5 and 5 appears to be necessary due to an artifact | ||
| * where the instrument will present half of the entire sample quantity from the screen | ||
| * within a single block (625000 bytes, or 5000000 bits / samples). Which means there | ||
| * are some legitimate points missing that are filled with "fake" ones at larger timebases. */ | ||
| for (int i = 0; i < samplerate_ratio-1; i++, ii++) | ||
| g_array_append_val(tmp_samplebuf, tmp_value); |
Hi,
This PR is based on the work of Eric Kuzmenko (#176).
It's been discussed on EEVblog forum and tested by different users on SDS 2000X HD, 800X HD, 1000X HD, and 2000X plus : https://www.eevblog.com/forum/testgear/new-sigrokpulseview-hardware-support-(siglent-sds-hd-rigol-dho800-)/
I've tried not to change any behavior of the original driver.
There are known limitations on digital channels of 2000X HD for memory depth > 5Mpts due to a bug in Siglent's firmware. I am exchanging with Siglent support team about that.
Please let me know if you have any comment.
Best regard,
Frederic.