|
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.
|
This post contains more resources
You have to Login for download or view attachment(s). No Account? Register
x
|