Author Topic: Rigol ds1054z WFM data converter  (Read 642 times)

0 Members and 1 Guest are viewing this topic.

Offline Pat Pending

  • Regular Contributor
  • *
  • Posts: 159
  • Country: us
Rigol ds1054z WFM data converter
« on: September 16, 2018, 02:45:35 am »
I just received a new Rigol DS1054Z and hit a snag almost immediately.

What utility converts the WFM files stored to flash into CSV format?
I've tried 5 different utilities from several varieties of python script to utilities that required labview.
I tried Rigols' own UltraScope as well as a ancient Tek WFM converter tool.
None has worked.

Storing as native CSV format on the flash simply takes too long

Any ideas what works.
Thanks
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 8287
  • Country: my
  • reassessing directives...
Re: Rigol ds1054z WFM data converter
« Reply #1 on: September 16, 2018, 03:55:33 am »
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 
The following users thanked this post: Pat Pending

Offline Pat Pending

  • Regular Contributor
  • *
  • Posts: 159
  • Country: us
Re: Rigol ds1054z WFM data converter
« Reply #2 on: September 16, 2018, 07:23:10 am »
I was looking for a script to perform the conversion due to the number of files but I'm in a pinch and this worked perfectly.

Thanks Mechatrommer
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 8287
  • Country: my
  • reassessing directives...
Re: Rigol ds1054z WFM data converter
« Reply #3 on: September 16, 2018, 03:17:43 pm »
i'll just leave the VB code chunk where it reads the WFM format here in case anybody want to continue the work... fwiw..
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 
The following users thanked this post: Fungus

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 8752
  • Country: 00
Re: Rigol ds1054z WFM data converter
« Reply #4 on: September 16, 2018, 10:08:44 pm »
Next question: Are the numbers you get the same as the CSV files or are they the raw sample data?
 
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 8287
  • Country: my
  • reassessing directives...
Re: Rigol ds1054z WFM data converter
« Reply #5 on: September 16, 2018, 11:19:02 pm »
who you are asking? what numbers?
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 8752
  • Country: 00
Re: Rigol ds1054z WFM data converter
« Reply #6 on: September 16, 2018, 11:51:26 pm »
who you are asking?

The people who've tried it.

what numbers?

The sample values inside the file, after decoding.
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 8287
  • Country: my
  • reassessing directives...
Re: Rigol ds1054z WFM data converter
« Reply #7 on: September 17, 2018, 12:52:35 am »
The sample values inside the file, after decoding.
there is no need to decode, everything is plain raw (8 bit) value. but i cant remember if they are the same as csv or not because if we closely deal with this we will encounter some form of weirdness (bug?) ie sometime the data we downloaded whether directly to PC through USB, or in wfm/csv files is not tally with whats shown on the dso screen, so we need to double check what we get in files/pc compared to dso screen. but sometime they are the same. VisaDSO provides manual data offset (Settings -> Data Trans. Method) and (Settings -> Manual Trans Setting) and scaling in case we encountered this bug. by default, we assume no bug (data discrepancey) going on (Settings -> Data Trans. Method -> Default (Rigol Formula)).

my advice in case capture process (wfm export from dso) cant be made the same time and place as PC post processing or data analysis, we should make screenshot capture to the USB stick used to save the wfm file, so later in pc we can verify the data captured from DSO (screen) was the same (offset and scaling) as whats saved in the wfm file. fwiw...
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 8752
  • Country: 00
Re: Rigol ds1054z WFM data converter
« Reply #8 on: September 17, 2018, 09:18:00 am »
The sample values inside the file, after decoding.
there is no need to decode, everything is plain raw (8 bit) value.
They will need to be offset/scaled to whatever the vertical settings were when it was captured.

but i cant remember if they are the same as csv or not because if we closely deal with this we will encounter some form of weirdness (bug?) ie sometime the data we downloaded whether directly to PC through USB, or in wfm/csv files is not tally with whats shown on the dso screen

On screen and CSV have sin(x)/x applied to it (maybe, after last week I'm not so sure).
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 8752
  • Country: 00
Re: Rigol ds1054z WFM data converter
« Reply #9 on: September 17, 2018, 09:48:34 am »
I just had a play and the short answer is: No.

Here's the data grabbed over LAN:

0000000  21 22 21 21 20 21 20 21 20 21 21 21 20 22 20 21 !"!! ! ! !!! " !
0000010  21 21 21 21 20 22 21 21 21 22 21 22 21 22 21 20 !!!! "!!!"!"!"!
0000020  20 2A 3C 54 6C 83 95 A1 A7 A7 A3 9A 91 87 80 7D  *<Tl..........}
0000030  7D 80 84 87 89 89 88 87 85 84 83 82             }...........


And here's the corresponding data inside the wfm file (shown in hex editor):


It's identical.

« Last Edit: September 17, 2018, 09:55:42 am by Fungus »
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 8287
  • Country: my
  • reassessing directives...
Re: Rigol ds1054z WFM data converter
« Reply #10 on: September 17, 2018, 10:00:32 am »
...
It's identical.
yes. istr that the problem is discrepancy between whats shown on the dso screen and all the downloaded/saved data. the downloaded and saved data are (should be) the same, except csv is precalculated (rigol 8bit to volt value formula) from the dso. but sometime, they are all tally with the screen, you'll need luck to observe and experience the bug, istr it has something to do with triggering state when the data is loaded into memory (when capture is stopped) and then transmitted to usb/lan/file. ymmv.
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf