Title: waveform record on 6254BD [Print this page] Author: wangshuang Time: 2021-12-24 14:41 Title: waveform record on 6254BD Customer consultation
Hi. I'm using the product Hantek6254BD.I tried the recording function and got a .drc file.
For further analysis, I'd like to convert .drc to .csv or .txt.
But, I have no idea about the conversion because I don't know its file structure.
So, could you tell me something about it?
Author: wangshuang Time: 2021-12-24 14:43
Reply
.drc files cannot be converted into other types of files.
You can click File -> Save data to get a .csv or .txt file.
Author: candlelit Time: 2021-12-30 03:08 Edited by candlelit at 2021-12-30 03:09
Hello
I had the same issue. Hanttek desn't provide any info about DRC file format. Also what I could investigate this format differs between fe. 6074 and 6022 oscilloscopes. However for 6xx4 oscilloscopes it looks following:
There is kind of header, with diffrent length depending on trigger settings and channels switched on - I can not decode it yet.
Than came data frames:
each data frame starts with 8 bytes of header or something
4096 data byte (-127 .. 128) - direct value from the AD converter
4096 bits (-1 or 0) representing if data byte is below trigger or above
complete data frame has length of 8200 bytes
I have written short python script that converts DRC into CSV that could be directly opened in excel.
How to use it:
- You need python installed
usage: drc_to_csv.py [-h] [-i input] [-o output] [-c channels] [-f]
This script will attempt to convert Hantek DRC file into CSV format
optional arguments:
-h, --help show this help message and exit
-i input input file (single)
-o output output file (single)
-c channels number of channels store in .drc file (1..4)
-f overwrite output file if exists
Data created by this script:
index - number of data point
data - voltage represented as data from AD converter (-127 .. 128)
level - below or above trigger level
frame - number of data frame
channel - number of channel
point - number of data point in current frame in current channel
I hope this script will help some of You to investigate Your measurement.
I also would appreciate if Hantek company would release description of it's DRC format so we do not have to play in reverse engineering.
Welcome to Electronic Engineer Discuss (https://www.eediscuss.com/)