Guys, you're the best. Discovered this thread by chance. BTW the new crop (DG800, DG900, DG2000) supports only the "sample rate" output mode. So that byte is re-purposed for the filter setting specification. In all other respects, the format looks similar.
RAF file format for DG800, DG900, DG2000
______________________________________________
Offset, Length, Description.
bytes. bytes.
______________________________________________
0 4 points number, N (u32, LE)
4 1 1
5 1 0
6 1 low-pass filter setting: 2 - "interpolation", 3 - "step", 4 - "smooth"
7 25 file name, a null-terminated ASCII char string
32 8 sample rate, *10^6 Sa/s (s64, LE)
40 4 high level voltage, *10^7 V (s32, LE)
44 4 low level voltage, *10^7 V (s32, LE)
48 2 points data CRC (u16, LE)
50 2 header CRC (u16, LE)
52 4 0
56 2N 16-bit points data ([s16], LE)