Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test files needed for Rigol 1000B scopes #1

Open
scottprahl opened this issue Mar 3, 2020 · 23 comments
Open

Test files needed for Rigol 1000B scopes #1

scottprahl opened this issue Mar 3, 2020 · 23 comments

Comments

@scottprahl
Copy link
Owner

scottprahl commented Mar 3, 2020

Just a few sets of saved waveforms created by a Rigol DS1074B, DS1104B, or DS1204B scope. Each set should contain

  • file.wfm
  • file.csv
  • file.txt (created when saving CSV files with "Para Save" ON)
  • file.bmp (screenshot is very useful)

Ideally these would cover a range of vertical and horizontal settings.

@KOLANICH
Copy link

KOLANICH commented Mar 7, 2020

Unfortunately I don't have access to this scope currently. It is not my scope, it belongs to my coworker.

@scottprahl
Copy link
Owner Author

No problem. Just keep this project in mind when you regain access to the scope. (or ask your coworker to upload a few files :-)

@scottprahl scottprahl changed the title Support Rigol 1000B waveforms Test files needed for Rigol 1000B waveforms Aug 3, 2020
@scottprahl scottprahl changed the title Test files needed for Rigol 1000B waveforms Test files needed for Rigol 1000B scopes Aug 3, 2020
@JoetVer
Copy link

JoetVer commented Jul 22, 2021

I have some sample files for DS1024B. Hope this helps. Can get more.
DS1204B.zip

@JoetVer
Copy link

JoetVer commented Jul 22, 2021

Sample files for DS1202Z-E. Appears that scope won't write CSV files where exporting deep memory records, the CSV file has just what was on the screen. DS1202Z-E.zip

@JoetVer
Copy link

JoetVer commented Jul 22, 2021

I have some information from old records about decoding timebase information for the DS1204B but not sure how reliable it is

|-----------------------+--------------------------+---------|
| bool | bTimeDelayed | 162 | 1 | symbol of TimeDelayed on |
|-----------------------+--------------------------+---------|
| int64 | s64TimeScale | 164 | 8 | Time Base ps |
|-----------------------+--------------------------+---------|
| int64 | s64TimeOffset | 172 | 8 | Time Offset |
|-----------------------+--------------------------+---------|
| float | f32TimeSaRate | 180 | 4 | Sample Rate |
|-----------------------+--------------------------+---------|
| int64 | s64TimeScaleStop | 184 | 8 | TimeScaleStop |
|-----------------------+--------------------------+---------|
| int64 | s64TimeOffsetStop | 192 | 8 | TimeOffsetStop |
|-----------------------+--------------------------+---------|

@scottprahl
Copy link
Owner Author

Please upload more info from your old records about the DS1204B.

I started a parser for the B variant, but I did not get very far. It seems that the DS1204B waveform format differs substantially from others.

@JoetVer
Copy link

JoetVer commented Jul 22, 2021 via email

@JoetVer
Copy link

JoetVer commented Jul 22, 2021

I'm not sure if this is correct but it may shed light on the header.
DS1204B.xls

@scottprahl
Copy link
Owner Author

There is not much on the web about the Rigol .wfm formats. Nearly all the info used in this project is unattributed sources :-)

The header you provided will get me much farther along. I will see what I can do.

@scottprahl
Copy link
Owner Author

Thanks to your header file, we can now parse DS1204B wfm files! I have checked in code that successfully converts your DS1204B.wfm file to a file that is equivalent to the .csv file that you sent. See docs/1-DS1000B-Waveforms.ipynb for details.

@scottprahl
Copy link
Owner Author

It would be good if you submitted a few files with some channels disabled and with a 10X probe for additional testing. But we have basic functionality now.

@JoetVer
Copy link

JoetVer commented Jul 23, 2021

DS1204B x10 c2-c4.zip
Only Ch4 has the setup saved (can redo if needed), hopefully is enough to cover the x10 for each channel. The probe setting for the unit range from 0.001 to 1000, but these files have just x10.

@scottprahl
Copy link
Owner Author

@JoetVer Rigol now correctly parses these files! One last test .wfm file is needed: one with channels 2 and 4 saved, using a 10X probe, and a non-zero voltage offset. One that file is correctly parsed, I will release a new version.

@JoetVer
Copy link

JoetVer commented Jul 25, 2021

Great work, see file attached. DS1204B x10 c2+c4.zip

@scottprahl
Copy link
Owner Author

That file works. Released v0.9.0 yesterday. Thanks for your help.

I will look at the DS1202Z-E files eventually.

@JoetVer
Copy link

JoetVer commented Jul 27, 2021

I loaded up a historical file that I was hoping to analyse but got an error
EOFError: requested 16384 bytes, but got only 8192 bytes. ZIP includes traceback.
Waveform_20202615220.zip

@scottprahl
Copy link
Owner Author

Fixed. I still don't really understand how data is stored. It seemed like all channels were saved in every wfm file, even if they were not enabled. I added logic so that only enabled channels will be read. This seems to fix the problem with the file you just uploaded.

@JoetVer
Copy link

JoetVer commented Jul 27, 2021

Looks like every historical record I have for that scope is the same size.

@JoetVer
Copy link

JoetVer commented Jul 27, 2021

Will you be releasing an update soon?

@scottprahl
Copy link
Owner Author

I was hoping you could test from the repository. However I just released v0.9.1 that might work for your old files.

@JoetVer
Copy link

JoetVer commented Jul 28, 2021

Thanks. That one works.
I'll have to look up how to run from the repository.
Is it worth approaching Rigol directly about getting more header info? I can try if that is what you would like? Otherwise the people on EEVBlog could also be a good source of files.

@scottprahl
Copy link
Owner Author

Rigol has been surprising forthcoming with info. When I asked, they had no info about the B-series, though. Maybe if you ask, your rep will be able to find something.

@JoetVer
Copy link

JoetVer commented Jul 28, 2021

I see on the Rigol site that the B's in the 1000's are marked as obsolete. The header info I provided was from 2013 and was all that I could get out of Rigol when the instrument was purchased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants