Electronic Engineer Discuss

View: 3721|Reply: 2
Print Prev. thread Next thread

waveform record on 6254BD

[Copy link]

60

Threads

443

Posts

443

Credits

版主

Rank: 7Rank: 7Rank: 7

Credits
443
Jump to specified page
1#
Post time 2021-12-24 14:41:16 | Show the author posts only Reply Awards |Descending |Read mode
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?





Reply

Use magic Report

1

Threads

6

Posts

6

Credits

新手上路

Rank: 1

Credits
6
Recommend
Post time 2021-12-30 03:08:10 | Show the author posts only
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

60

Threads

443

Posts

443

Credits

版主

Rank: 7Rank: 7Rank: 7

Credits
443
Recommend
 Author| Post time 2021-12-24 14:43:18 | Show the author posts only



Reply
.drc files cannot be converted into other types of files.
You can click File -> Save data to get a .csv or .txt file.


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x
You have to log in before you can reply Login | Register

Points Rules

Dark room|Mobile|Archiver|Electronic Engineer Discuss

2024-5-7 19:30 GMT+8 , Processed in 0.177910 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

Quick Reply To Top Return to the list