Author Topic: Setting Date and Time on Siglent SDS with a script  (Read 803 times)

0 Members and 1 Guest are viewing this topic.

Offline sibirTopic starter

  • Newbie
  • Posts: 6
  • Country: us
Setting Date and Time on Siglent SDS with a script
« on: August 15, 2020, 03:08:51 am »
That the SDS1104X-E does not keep date and time is really annoying when saving PNGs or other files to a USB stick.
I still have not given up hope that a future firmware update will let the scope fetch the time via NTP.

But as tv84 and BillB have pointed out elsewhere, you can set date and time via SCPI. Then the scope will time-stamp saved files correctly until the next power cycle.
To make life a little easier I now run the simple python script below to set the date and time. Note, that I assigned a static IP address to my scope.
Once I get tired of that I might turn it into a cron job or systemd service on some Raspberry Pi I use for home automation.

Code: [Select]
import visa, time
rm = visa.ResourceManager() 
inst = rm.open_resource('TCPIP::192.168.1.99::INSTR')
inst.write(':SYST:DATE ' + time.strftime('%Y%m%d'))
inst.write(':SYST:TIME ' + time.strftime('%H%M%S'))
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 28419
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Setting Date and Time on Siglent SDS with a script
« Reply #1 on: March 03, 2024, 10:56:20 pm »
FYI SDS1*04X-E
NTP support was added along with Logging in the V3 OS update along with FW update V6.1.37R2
Links:
https://int.siglent.com/upload_file/zip/firmware/Oscilloscope/SDS1xx4X-E_EN.zip (OS update)
https://int.siglent.com/upload_file/zip/firmware/Oscilloscope/SDS1xx4X-E_6.1.37R2_EN.zip

With an active LAN connection and correct NTP settings to your local NTP server IP, real time can be displayed and file timestamps are added.

Latest FW version is:
https://int.siglent.com/upload_file/zip/firmware/Oscilloscope/SDS1xx4X-E_V6.1.37R10_EN.zip
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 
The following users thanked this post: tonykara


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf