Electronic Engineer Discuss

View: 6274|Reply: 3
Print Prev. thread Next thread

Set data file clock

[Copy link]

1

Threads

21

Posts

21

Credits

新手上路

Rank: 1

Credits
21
1#
Post time 2022-4-2 18:13:49 | Show all posts
Edited by morgan_flint at 2022-4-2 18:37

Hello, Jing, in fact, the file name has a meaning, it's related to the time the system has been on: DSO_MM_dd_hh_mm_ss.BMP where MM=month, dd=day, hh=hour, mm=minute, and ss=second.

The system must have an internal clock set at Linux epoch time (01/01/1970 00:00:00) on startup. It would be a good idea to add the possibility to set it up, for example under the "utility" menu. Obviously, as there isn't real-time clock hardware in the DSO, it would reset to epoch time on startup but, if you're going to make several captures, the convenience of having them correctly labeled would compensate for the hassle of entering in the menu after powering it up

1

Threads

21

Posts

21

Credits

新手上路

Rank: 1

Credits
21
2#
Post time 2022-4-3 02:45:10 | Show all posts
Edited by morgan_flint at 2022-4-5 01:25

Hello again, Jing

After installing Keysight IO Libraries Suite 2022, I decided to investigate if there was a possibility to set time and date with SPCI commands. After some googling I found the command SYSTem:TIME? (not documented in the SCPI manual for DSO2000 series) was working correctly, returning something like 1970;1;1;0;10;48 (depending on the up time). But the usual syntax for setting time like SYSTem:TIME hh,mm,ss didn't work. After a more specific Google search, I found SCPI Remote communication control manual for DSO4000BC, where SYSTem:TIME? was explained on page 78, along with the SYSTem:SET:TIME command.

So I tried this command with the syntax explained there and bingo! the time and date could be set to the present time!
I think this is very convenient as, if you don't set the time/date, it will be more difficult to sort, find or classify the captures in the future, unless you rename them by hand on the fly.

I'm attaching a capture of the Keysight Interactive IO dialogue and another capture of the file browser showing a screen saved to USB with the name correctly showing the present time as well as the file modification date.


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-3 00:30 GMT+8 , Processed in 0.172089 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

Quick Reply To Top Return to the list