Author Topic: Questions about Siglent SDS1202X-E's SCPI interface  (Read 3548 times)

0 Members and 1 Guest are viewing this topic.

Offline enthdegreeTopic starter

  • Contributor
  • Posts: 11
  • Country: us
Questions about Siglent SDS1202X-E's SCPI interface
« on: January 12, 2023, 06:26:38 pm »
Hi, I'm having trouble finding certain details about the SDS1202X-E before I go down to Microcenter to pick one up.
Basically I am wondering if there are any general ways that it's horribly crippled.
  • In a perfect world, I imagine the scope would present itself as a serial device over USB (or with Ethernet, talk/listen on some network socket) and you could read and write SCPI commands to it there. Is this the case, or do you have to go through some nonsense proprietary middleman software?
  • At what rate can you pull floating points out of the device?
  • Can you configure the scope to print out raw IEEE float data, or are you limited to ASCII float strings?
  • What is the latency for trigger/reconfiguration commands issued by SCPI? Like is it <~10ms or > ~100ms?
Thanks!
« Last Edit: January 12, 2023, 06:32:19 pm by enthdegree »
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 29810
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #1 on: January 12, 2023, 07:01:29 pm »
Hi, I'm having trouble finding certain details about the SDS1202X-E before I go down to Microcenter to pick one up.
Basically I am wondering if there are any general ways that it's horribly crippled.
  • In a perfect world, I imagine the scope would present itself as a serial device over USB (or with Ethernet, talk/listen on some network socket) and you could read and write SCPI commands to it there. Is this the case, or do you have to go through some nonsense proprietary middleman software?
Unfortunately these don't have an inbuilt webserver with a SCPI page.  :(
Instead you use Siglent's free SW EasyScopeX that requires at least a NIVISA Runitime install for the connectivity drivers.

Or if your are running Linux on your PS you can instead use member lundmar's great SW.
Here where he started developing it Siglent sent him some gear to test with:
https://www.eevblog.com/forum/testgear/open-source-lxi-tools-and-liblxi-v1-0-released-for-gnulinux/msg1394796/#msg1394796

Later it's evolved into a more recent version here:
https://www.eevblog.com/forum/testgear/open-source-lxi-tools-v2-0-released/

Programming guide:
https://int.siglent.com/u_file/document/SDS1000%20Series&SDS2000X&SDS2000X-E_ProgrammingGuide_PG01-E02D.pdf


If the additional SW required turns you off the 4ch X-E is the cheapest from Siglent with a webserver followed by the 2ch SDS2000X-E series.[/list]
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 
The following users thanked this post: enthdegree

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3345
  • Country: pt
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #2 on: January 12, 2023, 07:03:20 pm »
You can telnet to the SCPI port and send the commands in that shell.
 
The following users thanked this post: tautech, Coldblackice, enthdegree

Offline tautech

  • Super Contributor
  • ***
  • Posts: 29810
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #3 on: January 12, 2023, 07:04:01 pm »
You can telnet to the SCPI port and send the commands in that shell.
Yep, that too and was busy hunting out further info:
https://siglentna.com/operating-tip/instrument-socket-and-telnet-port-information/
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 
The following users thanked this post: tv84, enthdegree

Offline enthdegreeTopic starter

  • Contributor
  • Posts: 11
  • Country: us
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #4 on: January 14, 2023, 08:54:04 pm »
Thank you everyone for answering my questions. I'm able to connect to it and query samples via telnet.
Silly issue but this had me scratching my head for a while: even with the channel enabled, "C1:WF? ALL" would only return samples with a probe plugged in.

  • In a perfect world, I imagine the scope would present itself as a serial device over USB (or with Ethernet, talk/listen on some network socket) and you could read and write SCPI commands to it there. Is this the case, or do you have to go through some nonsense proprietary middleman software?
    I have it plugged into the back of my desktop via ethernet and can talk to the device with SCPI over telnet on port 5024 and 5025.
  • At what rate can you pull floating points out of the device?
    When I have a need to pull them out programmatically I'll try and remember to report back latency figures here.
  • Can you configure the scope to print out raw IEEE float data, or are you limited to ASCII float strings?
    Limited to raw binary float data. (run `template?` in SCPI prompt)
  • What is the latency for trigger/reconfiguration commands issued by SCPI? Like is it <~10ms or > ~100ms?
    See above. SCPI prompt "feels responsive" so my guess is the latency imposed by the network stack + command interpretation is somewhere below 150 ms.

Very happy with the thing. I only wish: XY was less choppy, the FFT included phase information instead of just magnitude, there was a Gaussian window, could compute spectra of C1 and C2 simultaneously, bandpass filter+mix+downconvert settings for FFT.
« Last Edit: April 09, 2023, 04:23:41 pm by enthdegree »
 

Offline alm

  • Super Contributor
  • ***
  • Posts: 2903
  • Country: 00
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #5 on: January 14, 2023, 09:52:21 pm »
For more advanced FFT, you could acquire the time domain data and do FFT outside the scope using something like Octave.
 
The following users thanked this post: enthdegree

Offline Performa01

  • Super Contributor
  • ***
  • Posts: 1729
  • Country: at
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #6 on: January 15, 2023, 08:01:27 am »
Very happy with the thing. I only wish: XY was less choppy
Not sure what you mean by "choppy" - the movement or the rendering.
I don't have a SDS1202X-E at hand right now, but:

If it's anything like the more advanced models, then the movement should be totally smooth at least with reasonable record lengths <1 Mpts. Likewise, the rendering should be quite nice because of the high waveform update rate and intensity grading. Of course, it is still 8 bits, especially noticable in XY-mode, where a LSB corresponds to two pixels on the screen. An SDS2000X Plus in 10 bit mode does a much better job in this regard.

... the FFT included phase information instead of just magnitude,
At least on an SDS2000X it does; just download the FFT data from the scope, it contains everything.

there was a Gaussian window,
Yes ... and Kaiser, Blackman-Harris, Barlett ...

Remember, this i just an 8-bit scope. I dare to say that Flattop and Blackman is all you need in practice.

could compute spectra of C1 and C2 simultaneously,
This would require two math channels like an SDS2000X Plus. Maybe too much asked for a bottom of the barrel entry level model?

bandpass filter
Since Siglent offers decent math - not just on heavily decimated data, or even only screen data - this takes quite some resources, available in higher end models only.

+mix+downconvert settings for FFT.
Very interesting request. I've demonstrated something similar on an SDS2000X HD, using the formula editor. It worked well on a 12-bit device, but not with just 8 bits.

https://www.eevblog.com/forum/testgear/siglent-sds2000x-hd-12bit-(published-for-chinese-domestic-market-only)/msg4320658/#msg4320658

 
The following users thanked this post: 2N3055

Offline tonycstech

  • Regular Contributor
  • *
  • Posts: 73
  • Country: us
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #7 on: October 06, 2023, 03:09:32 am »
I tried USB and LAN cable connected to my router to which my PC is also connected.
EasyScopeX does not find the scope either way.

What am i doing wrong ?
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 29810
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #8 on: October 06, 2023, 03:21:03 am »
I tried USB and LAN cable connected to my router to which my PC is also connected.
EasyScopeX does not find the scope either way.

What am i doing wrong ?
EasyScopeX is a Windows program and requires the NIVISA connectivity drivers for both LAN and USB connection.
The NIVISA Runtime package is the least you need.

Within the scopes UI you will need set a valid IP for your LAN but with USB it should auto-discover.

With USB Windoze thinks it knows best if NIVISA drivers aren't preinstalled and assigns a generic USB driver that never works.
If you are at this point the attached doc can guide you to make the necessary USB driver changes to obtain connectivity.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline tonycstech

  • Regular Contributor
  • *
  • Posts: 73
  • Country: us
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #9 on: October 06, 2023, 03:29:00 am »
wow that was a lot of garbage to download.
System changes, several services added to windows startup WOW and on top of that, refresh rate for the scope wave is pathetic at best.
I guess i need a brand change
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 29810
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #10 on: October 06, 2023, 03:44:04 am »
wow that was a lot of garbage to download.
System changes, several services added to windows startup WOW and on top of that, refresh rate for the scope wave is pathetic at best.
I guess i need a brand change
Good, you have it working then.  :clap:

The thread opened with needing SCPI advice, have you got that working to your needs.
As for refresh rates, nothing beats the webserver that was added later into the 4ch X-E's but not to SDS1202X-E.  :(
Much easier to use too and offers more and better features without any need for those darn drivers.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 
The following users thanked this post: Coldblackice

Offline tonycstech

  • Regular Contributor
  • *
  • Posts: 73
  • Country: us
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #11 on: October 06, 2023, 04:42:05 am »
Very good.
My computer was bricked. I was unable to load Windows after reboot.
Startup repair did not help.
I have no idea what files i had lost on my desktop thanks to that software.
Good thing i have a flash drive with windows 10 so i was able to reinstall it from a scratch.
Good times.


Oh wait, not i gotta fix windows 10 installing a bootloader to another drive other than its own.
Gotta wipe the system again, this time with other SSD's disconnected during installation.

What a wonderful day.
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 29810
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #12 on: October 06, 2023, 05:20:26 am »
From where did you source the NIVISA package you installed ?
Maybe it was from a dodgy host ?
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline tonycstech

  • Regular Contributor
  • *
  • Posts: 73
  • Country: us
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 29810
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #14 on: October 06, 2023, 07:58:26 am »
 :-//
I've had EasyScopeX on several machines over 10 years, W7, 8 and 10. i3, i5 and i7, all 64 bit but always with just the Runtime driver package, not the full NIVISA install.
On this box are EasyScopeX, EasyWaveX, EasySDL and EasyPower.

Did you study the Easy***** install instructions, attached.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Online coromonadalix

  • Super Contributor
  • ***
  • Posts: 7008
  • Country: ca
Re: Questions about Siglent SDS1202X-E's SCPI interface
« Reply #15 on: October 06, 2023, 10:19:07 am »
i use Rhode & Schwartz Visa package, simple lightweight
https://www.rohde-schwarz.com/us/applications/r-s-visa-application-note_56280-148812.html

and inside you have a 32 / 64 bit trace tool software tool to help / do some "read and talk" tests ....


I run Rigols, Siglent ... and Keysight meters ...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf