RigolWFM icon indicating copy to clipboard operation
RigolWFM copied to clipboard

Test files needed for Rigol 1000C waveforms

Open scottprahl opened this issue 5 years ago • 3 comments

The code is in the repository, but it is untested. A few sets of saved waveforms created by a Rigol DS1000C, DS1000M, DS1000CD, DS1000MD, DS1062CA, DS1102CA, DS1202CA, or DS1302CA scope would fix this. Each set should contain

  • file.wfm
  • file.csv
  • file.txt (created when saving CSV files with "Para Save" ON)

Ideally the saved waveforms would cover a range of vertical and horizontal settings.

scottprahl avatar Mar 03 '20 18:03 scottprahl

does your project support DS1042C ? i took a look to the magic numbers but none of them seems to match to that in my wfm file. DS1042C.zip

in the maximum csv file seems a bit buggy - loss of resolution in time axis.

beta-tester avatar Dec 07 '21 10:12 beta-tester

@beta-tester thanks for the source files. The magic numbers are messed up. I have no idea what Rigol was thinking when they created them. They seem to be used inconsistently. Anyhow, I just released v0.9.4 which should work for you.

scottprahl avatar Dec 12 '21 21:12 scottprahl

thank you for adding the DS1042C and the update.

i can see a little drift in the x-axis (time) then looking to the converted DS1042C wfm to csv file. signal0_wfmconverter.csv.zip

starting at line 5246 (at -4.845049ms) the interval is not 0.000050ms.

$ wfmconvert C csv signal0.wfm
$ cat signal0.csv

X,CH 1,Start,Increment
ms,mV,-6.000000e-03,1.000000e-05
-5.107200,60.00
-5.107150,60.00
-5.107100,60.00
...
-4.845250,60.00
-4.845200,20.00
-4.845150,60.00
-4.845100,20.00
-4.845049,20.00
-4.844999,60.00
-4.844949,60.00
-4.844899,40.00
-4.844849,20.00
...
7.213373,560.00
7.213423,300.00
7.213473,100.00
7.213523,100.00
7.213574,60.00
7.213624,20.00
7.213674,40.00
7.213724,40.00
7.213774,60.00
7.213824,-20.00
...

this drift propergates over the file. is that a rounding error or is that the nature of the rampling rate vs. time base of the scope?

and are Start and Increment right?

beta-tester avatar Dec 12 '21 23:12 beta-tester