N0ury/dmm_util

recording list format and usage info

Closed this issue · 13 comments

Please:

  1. number recordings the same way they show up on DDM (1-based)
  2. add recording start date
  3. separate output values with one TAB char only (good idea, tabs are better than spaces)
  4. fix usage info. Probably it should read:
dmm_util <usb port> recordings {index | name} <value...>
dmm_util <usb port> recordings list
-- or --
dmm_util <usb port> recordings {list | index <value...> | name <value...>}

if the intention is to follow Microsoft/IBM standard
The same applies to the other saved_* options.

image

N0ury commented

add recording start date what do you mean? Can you give an example?

Note: duration can span over more than one day thus dd:hh:mm:ss format. Alternative solution: return total seconds

image

N0ury commented

For the 1-based index please try the 1-based-index branch, and tell me if it's ok.

For the last comment, I'm sorry but I don't understand.
Is it for the list option?
If so, what interval samples and events means? There is only one value, the number of samples.

This is a single recording data DMM shows. What I mean is that probably this data is available via serial interface as well and could be downloaded and presented. I think duration, interval samples and event count apply to recordings only.

IMG_3897

N0ury commented

I have never used this notion of "event".
I need some help...
Can you please:
1 - get the 1-based-index branch script
2 - remove the "#" in line 439
3 - run the utility for the recording in the photo above
4 - stop the script by typing CTRL-C (I need only the beginning, there are too many results)
5 - post the result (only the "recording" data)
I need to know if events is the field named sample_interval
Interval Samples is the field num_samples of my structure.

I am not an expert but I think what Fluke means by event is what is defined under Setup/Recording menu option (below).
It looks there are three typed of records: INTERVAL, STABLE and UNSTABLE. INTERVAL records are scheduled samples, STABLE/UNSTABLE are events recorded out of schedule. I did counting, it adds up.
I think the "Format" header on the attached screen is a bug.
Requested file attached.

Fluke-G1.txt

IMG_E3898

N0ury commented

Thanks but you didn't uncomment line 435...
So I don't have the "recording" structure.

here it is again
Fluke-G1.txt

N0ury commented

Thanks for these informations.
I have understood what these data mean.
I have searched them in the data returned by the DMM.
Unfortunately, I can't find them.
I find only one thing: the sum of the two others.
You can see this in the file you have posted. It's the field num_samples. It's value is 5444 ie 244 + 5200
You know this is reverse engineering, and all data are not explained. There are different formats, and it's hard to find everything.
So I'm sorry but I can't display Interval samples and Events.
I'll work on the other things you asked for.

Thanks for trying, probably this data is just not there.

N0ury commented
  1. number recordings the same way they show up on DDM (1-based) => partially done
  2. add recording start date => done
  3. separate output values with one TAB char only (good idea, tabs are better than spaces) => done
  4. fix usage info. => done

More tests must be done.

It looks all good.
Maybe duration days should be two chars instead of one char but I am not certain (e.g. 0:20:17:09 -> 00:20:17:09).

N0ury commented

You are right.
User manual says -> 99 days 23 hours and 59 minutes
It's done