Author Topic: SDM3045X SCPI poll rate  (Read 720 times)

0 Members and 1 Guest are viewing this topic.

Offline PerkeleTopic starter

  • Regular Contributor
  • *
  • Posts: 59
  • Country: ie
SDM3045X SCPI poll rate
« on: July 25, 2023, 08:35:06 am »
What is the fastest readouts poll rate on SDM multimeters via SCPI over LAN? Sacrificing precision for speed is acceptable.
SDM3045X multimeter is connected to a PC via LAN patch cable, there are no network switches or routers between them.

I'm getting between 40ms and 45ms per readout.

Setup commands:
CONF:CURR:AC 0.6
CURR:AC:NPLC 0.3
CURR:AC:NULL 0
TRIG:COUN 1
TRIG:DEL 0
TRIG:DEL:AUTO 0
TRIG:SOUR IMM
SAMP:COUN 1

Values (AC current) are read by executing:
INIT
DATA:LAST?

This is a simple single-thread application, and now the requirement is to reduce SCPI read time.
I have read the manuals and I am aware that it is possible to set-up the trigger so that the instrument's buffer is filled with measurements at a rate defined by NPLC.
But at the moment I don't have the instrument here with me to properly test the code changes.
 

Offline alm

  • Super Contributor
  • ***
  • Posts: 2903
  • Country: 00
Re: SDM3045X SCPI poll rate
« Reply #1 on: July 25, 2023, 11:31:19 am »
I think the big improvement will indeed be reading into a buffer and retrieving the entire buffer at the same time. Doing a command per reading is never going to be fast. Usually system multimeters have a section in the manual about optimizing reading rates.

You might be able to achieve a tiny gain by switching to a more compact output format like binary instead of text. Double check if the meter disables auto zero in ACV mode. Otherwise that could help performance.

Offline delvo

  • Contributor
  • Posts: 38
  • Country: de
Re: SDM3045X SCPI poll rate
« Reply #2 on: July 25, 2023, 12:42:06 pm »
Try setting TRIG:COUN INF
and then loop R? 10000 to get the last 10000 readings (or less if there is less in the buffer). That should be a lot faster and you will probably be limited by the sample rate of the multimeter instead of the LAN

Edit: Just noticed you were reading AC current. That is really not that fast. I also dont think you can set the NPLC and auto zero for that. I dont think they do anything. The only setting that increases the speed of AC current measurements is the bandwidth and i dont think you can set that on a 3045X
« Last Edit: July 25, 2023, 01:05:21 pm by delvo »
 

Online KungFuJosh

  • Super Contributor
  • ***
  • Posts: 2842
  • Country: us
  • TEAS is real.
Re: SDM3045X SCPI poll rate
« Reply #3 on: July 25, 2023, 02:33:39 pm »
I don't know if this helps your quest or not, but improving the SDM3045X to the SDM3055X-E makes other things better. 😉
"Right now I’m having amnesia and déjà vu at the same time. I think I’ve forgotten this before." - Steven Wright
 

Offline PerkeleTopic starter

  • Regular Contributor
  • *
  • Posts: 59
  • Country: ie
Re: SDM3045X SCPI poll rate
« Reply #4 on: August 07, 2023, 07:50:23 am »
Thank you for the answers.
Removing auto-zeroing in order to speed things up was mentioned in the manual and on some other forums.

Reading the buffer seems like the only way out, but wanted to avoid it until I get that meter onto my desk.

Upgrading the firmware is out of question because it's someone else's device.
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29491
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: SDM3045X SCPI poll rate
« Reply #5 on: August 07, 2023, 07:56:37 am »
Upgrading the firmware is out of question because it's someone else's device.
Josh speaks of changing the model, yes it is done by fooling the meter to accept another model firmware however any instrument tests/checks should always be done with the latest firmware installed which is 09R2
https://int.siglent.com/upload_file/zip/firmware/A_multimeter/SDM3045X_V5.01.01.09R2.zip
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf