-
Notifications
You must be signed in to change notification settings - Fork 22
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
DS1024C are not parsed correctly #1
Comments
@vincent: |
Of course! I am trying to figure out how to add a file and I send it right away after ;) |
I think you can easily upload the file to https://gist.github.com/. It looks like GitHub does not support uploading files in issues... |
Ok. I’ve uploaded the file here: Thanks for looking into this issue! |
Tell me if you got it. I just figured out that Free requires you to watch an ad before you can access the file… |
I got it - I'll look into it and will get back to you if i require more info. |
Great! However, I’ll be on holidays starting tomorrow till August, 20th circa. I’ve an Internet access but, needless to say, I don’t take my 'scope with me! ;) |
Ok, so it now looks like the trailing 0000 0100 was added due to a bug in the scope. It actually appended a sample of data which was not in the data. Notice how it is also displayed as a spike at the end in the oscilloscope screenshot. I think the my Rigol also just ignores the sampling rate field, but since then the channel data is actually to short - it just invents some random data at the end. Not what I call professional from RIGOL... I can work around this though. I'll update the repo soon. |
As reported by issue #1, there are wfm files which miss the smpRate field. Since the information is redundant, we can simply ignore the field for such files. Detection of the protocol version is done via the file length.
@Vinsang: You should now be able to open the files generated by your scope. (At least it works for me.) I'd still be interested in the age and firmware version of your scope, though. |
It looks like the field missing in your file is the sampling rate of the integrated logic analyzer. For the DS1000 series, which do not include a logic analyzer, this field looks to be equal to the primary sampling rate. So it seems that the Rigol guys added some of the logic analyzer features later to their product and modified the struct holding the sampling data. Unfortunately this also resulted in this new field in the wfm header. I doubt they even noticed that their internal change broke WFM compatibility.... |
Hi Matthias, |
Hi Vincent, Interesting, that your scope supports digital channels. I'd like to point you to issue #3 for this. I have yet to get WFM captures with digital channels. |
Hi Vincent, I hope you had a nice vacation! Did you have time to look into this issue again? Is it resolved for you? Maybe you could also provide WFM files with digital channels? Best, |
Hallo Matthias,
Nicht jetzt (bin nur gestern Abend zurückgekommen), aber ich verspreche Dir, ich werde es Morgen versuchen. Noch einmal vielen Dank für deine Anstrengungen! Bis Morgen! Gute Nacht inzwischen! |
I have a DA1052E . I also get "Field smpRate >= 0 not met, got " followed by a Á Capital A, acute accent. Using od -c the first few bytes are 0000000 ¥ ¥ \0 \0 Á \n \0 \0 005 022 \0 \0 \0 \0 \0 \0 0000000 a5a5 0000 0ac1 0000 1205 0000 0000 0000 |
Hi @beribboned, could you provide me with the wfm file? Best, |
http://people.trentu.ca/benbauer/WFM/aaaaaaaa.wfm here is a plot I made (partial data) after extracting channel 1 using rigol2dat.C http://people.trentu.ca/benbauer/WFM/rgl001.pdf Note that I had to fudge the timebase because rigol2dat didn't seem to get it quite right. This should be close to 85.2 Hz. |
Hmm this file does not work, but also does not throw the error you mentioned:
This error is due to slopeWidth being equal to zero. Once this is removed, the file works:
|
Should be fixed in master now. The --forgiving option is still required, I'll look into that. |
Thanks. Works with python 2.7. This is a CRT screen measured with a photodiode pulled from an optical mouse. |
As reported by Vincent here the file format of the DS1024C seems to be incompatible with the current parser.
The error is
Probably the fields are shifted in this version.
The text was updated successfully, but these errors were encountered: