File Exchange

image thumbnail

Read binary Rigol waveforms

version 1.3 (3.09 KB) by

Read binary waveform (.wfm) files stored by Rigol oscilloscopes

13 Downloads

Updated

View License

This function will read binary waveforms (.wfm files) that were stored by Rigol oscilloscopes.

Comments and Ratings (5)

Kevin Rowett

FWIW - only works with ch1 and ch2 traces. Don't plot, nor examine any of the logic analyzer data (for the '1102D instrument). For the scope channels, work great.

Good foundation for extending analysis.

Chen Song

Thank you so much for sharing! It works well for me! One thing I'm wondering about is that is there a corresponding write code that can write the data back into wfm?

William Dally

This does not work on .wfm files produced by my Rigol 1104B. Does anyone know the file format for the 1104?

Tobias Lamour

H Paul,

many thanks for distributing this very well programmed Rigol waveform reader.
This works like a charm.

Maybe a small example file like the lines below would enable inexperienced users to extract the full functionality of your great work quicker:

________________
%% PlotRigolWaveform
clear all; clc;
% reads wfm file
[y, nfo] = readRigolWaveform('b.wfm');
% Creates an time array based on the details in "nfo"
TIME=linspace(nfo.x0,nfo.x0+nfo.dx*length(y),length(y));
% plots all available traces along TIME axis
plot(TIME,y)
_______________

Feel free to recycle that if you wish.
Many thanks,
Tobi

Walter

Walter (view profile)

Works great. Thanks.

Updates

1.3

Fixed crash when readRigolWaveform was called without any output arguments.

1.2

Fixed the help comments section in the beginning of the file.

1.1

- Fixed a few bugs
- WARNING: interface of function has been changed

MATLAB Release
MATLAB 7.5 (R2007b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video