Author Topic: The Siglent SDG2042X Thread  (Read 566871 times)

0 Members and 4 Guests are viewing this topic.

Offline Roger Need

  • Regular Contributor
  • *
  • Posts: 73
  • Country: ca
Re: The Siglent SDG2042X Thread
« Reply #1400 on: May 13, 2021, 06:57:09 pm »


Roger

In the attached screenshot you can see that the SDev value is 3.86... Hz.

How do you get the 2042X to save a screenshot to the USB flash drive?  I have not found anything in the User manual.

Roger
 

Offline bicycleguy

  • Frequent Contributor
  • **
  • Posts: 265
  • Country: us
Re: The Siglent SDG2042X Thread
« Reply #1401 on: May 25, 2021, 10:26:45 pm »
Any idea when Siglent will update the Python examples to Python3 as 2 is soon to be deprecated and I don't want to spend any more time with it.
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 28388
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: The Siglent SDG2042X Thread
« Reply #1402 on: May 25, 2021, 10:35:15 pm »
Any idea when Siglent will update the Python examples to Python3 as 2 is soon to be deprecated and I don't want to spend any more time with it.
This one ?
https://siglentna.com/application-note/programming-example-create-a-stair-step-waveform-using-python-and-pyvisa-using-lan-sdg1000x-sdg2000x-sdg6000x/
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline bicycleguy

  • Frequent Contributor
  • **
  • Posts: 265
  • Country: us
Re: The Siglent SDG2042X Thread
« Reply #1403 on: May 25, 2021, 10:56:12 pm »
tautech,
Thanks !   That was fast!

I haven't got it working yet, but close.  Got it working from my mac, awesome!
« Last Edit: May 25, 2021, 11:04:53 pm by bicycleguy »
 

Offline exe

  • Supporter
  • ****
  • Posts: 2563
  • Country: nl
  • self-educated hobbyist
Re: The Siglent SDG2042X Thread
« Reply #1404 on: May 26, 2021, 09:00:36 am »
Any idea when Siglent will update the Python examples to Python3 as 2 is soon to be deprecated and I don't want to spend any more time with it.
This one ?
https://siglentna.com/application-note/programming-example-create-a-stair-step-waveform-using-python-and-pyvisa-using-lan-sdg1000x-sdg2000x-sdg6000x/

On my screen the formatting is corrupted: indentation seems to be lost. (identation is essential for python scripts to work)
 

Offline ebastler

  • Super Contributor
  • ***
  • Posts: 6510
  • Country: de
Re: The Siglent SDG2042X Thread
« Reply #1405 on: May 26, 2021, 03:43:33 pm »
https://siglentna.com/application-note/programming-example-create-a-stair-step-waveform-using-python-and-pyvisa-using-lan-sdg1000x-sdg2000x-sdg6000x/

On my screen the formatting is corrupted: indentation seems to be lost. (identation is essential for python scripts to work)

The copy of the source code in the downloadable ZIP file is fine though.
 

Offline colorado.rob

  • Frequent Contributor
  • **
  • Posts: 419
  • Country: us
Re: The Siglent SDG2042X Thread
« Reply #1406 on: May 27, 2021, 12:52:15 pm »


Roger

In the attached screenshot you can see that the SDev value is 3.86... Hz.
How do you get the 2042X to save a screenshot to the USB flash drive?  I have not found anything in the User manual.

Roger

I grab screenshots via SCPI over the network.

https://gist.github.com/mobilinkd/8a07cc124946c87715c6a1458118411e
« Last Edit: May 28, 2021, 02:19:45 am by colorado.rob »
 

Offline Timpert

  • Contributor
  • Posts: 49
  • Country: nl
Re: The Siglent SDG2042X Thread
« Reply #1407 on: June 03, 2021, 08:18:35 am »
A couple of days ago I had a power supply failure on my SDG2042X. The whole unit just went dead after it had been powered on continuously for a couple of days. Of course I dove right into it, and I found that one of the Schottky rectifier diodes for the +18V supply had shorted out. It was diode D21 in this picture (from member Blue): https://www.eevblog.com/forum/testgear/the-siglent-sdg2042x-thread/?action=dlattach;attach=1205132;image. I removed that diode and the unit happily started up, running the 18V on one diode only. The diode that was still working barely heated up. Also, the voltage across the diodes is fine (no reverse voltage peaks can be seen on a 200 MHz bandwidth scope) and the current drawn from +18 V is not more than 0.5 A. So D21 did not have any reason to fail, but it did nonetheless. I replaced both D20 and D21 with BR36 diodes (rated for 3 A instead of 2) and everything seems to work fine again. The diodes remain cool as far as I can tell with my IR thermometer and finger test.

I also noticed that I have an old version of the power supply. Mine uses an NXP TEA1610T controller which is now listed as obsolete on the NXP website. The one from Blue uses an ST controller (L6599AD) and has a different layout at the primary side, but at the secondary side it looks the same as mine. The startup resistors on mine are warm but not alarmingly hot. Still puzzled about the cause of that diode failure though. It really shouldn't have died.
« Last Edit: June 03, 2021, 09:50:12 am by Timpert »
 
The following users thanked this post: Blue

Offline Timpert

  • Contributor
  • Posts: 49
  • Country: nl
Re: The Siglent SDG2042X Thread
« Reply #1408 on: June 06, 2021, 06:56:54 pm »
The generator has been powered up continuously for four days since the repair without issues. So I guess I did fix it 8).

Just out of curiosity I took the failed diode and measured it. Sure enough, my bench DMM saw it as a short in both directions. So then I connected it to my lab PSU and cranked up the current in what would normally be blocking direction. All of a sudden, it became a diode again! It read perfectly normal as a Schottky diode after the treatment, so I guess the die was OK, but somehow (whisker?) a parallel short circuit had developed.

Another thing I noticed: I was running firmware 2.01.01.23R8. After the repair, I updated it to 2.01.01.35R3B2. After the update, the power consumption increased by one Watt. So apparently, the new firmware makes the FPGA work a bit harder. At first I was planning to put in a somewhat quieter fan, but I guess it would be better to just keep the original fan. Perhaps interesting to do a bit of research on this, but for now I'll just go back to using it.
 

Online blurpy

  • Regular Contributor
  • *
  • Posts: 232
  • Country: no
Re: The Siglent SDG2042X Thread
« Reply #1409 on: July 13, 2021, 04:54:23 pm »
I've done some measurements of the THD of the SDG2042X using a QA401 audio analyzer to see how it stacks up to the datasheet:

Quote
Total Harmonic Distortion: 0.075% @ 0 dBm, 10 Hz ~ 20 kHz

These are the raw numbers from my measurements:



And in a graph to see the trend more easily:



Here's what the spectrum looks like for 20Hz @ 1V RMS:



And for 1kHz @ 0dBm/0.224V RMS:



And 1kHz @ 7V RMS:



And lastly 20kHz @ 3.6V RMS:



You can see 2 channels on these images, and the left (yellow) channel is the SDG2042X, and the right (red) channel is the signal coming from the built in generator of the QA401, for comparison. The SDG can go up to 7V RMS, while the built in generator will go almost to 2V RMS, so in some of the screenshots the voltage levels between the channels will be different.

The SDG does better than the datasheet specifies in all cases. It does quite well across the audio frequency range, with 20Hz being slightly worse than other frequencies. Above 20Hz you get around 0.004% and 0.005% THD up to about 3.5V RMS before it steeply climbs to around 0.03% and 0.04%.

I found it fun looking into this. I didn't think it would do so well, since I've been hearing how it's useless for audio. It's useless for measuring modern DACs and preamps of course, but it will be good enough for many power amplifiers. Low distortion, but not ultra low distortion.
 
The following users thanked this post: TurboTom, JohnG, 2N3055, mawyatt, Bad_Driver

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3273
  • Country: us
Re: The Siglent SDG2042X Thread
« Reply #1410 on: July 14, 2021, 12:05:00 am »
Thx for the effort, results are better than I expected ::)

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 

Offline Calvin

  • Regular Contributor
  • *
  • Posts: 166
  • Country: de
    • Calvin´s audio page
Re: The Siglent SDG2042X Thread
« Reply #1411 on: July 14, 2021, 05:03:24 am »
Hi,

the QA401´s ADC own optimum Level-vers-THD range is around -16dBV.
When measuring the Analyzer in loopback one can see the HD2 breaking through the noisefloor from -16dBV on up.
The THD curve @20Hz/0dB probabely shows more of the ADC´s own distortion than the actual DUT´s distortion.

regards
Calvin
..... it builds character!
 
The following users thanked this post: exe, 2N3055

Online blurpy

  • Regular Contributor
  • *
  • Posts: 232
  • Country: no
Re: The Siglent SDG2042X Thread
« Reply #1412 on: July 14, 2021, 05:04:32 pm »
Hi,

the QA401´s ADC own optimum Level-vers-THD range is around -16dBV.
When measuring the Analyzer in loopback one can see the HD2 breaking through the noisefloor from -16dBV on up.
The THD curve @20Hz/0dB probabely shows more of the ADC´s own distortion than the actual DUT´s distortion.

regards
Calvin

Here is one at 20Hz -13dBV for comparison:



If we compare them we can see that HD2 for the loopback is lower than on the 0dBV graph, while HD2 for the SDG is more or less the same. So it could be that at -13dBV it's the SDG that is the limiting factor, and at 0dBV it's the ADC. I am not sure. Interesting comment.
 

Offline yaybee

  • Contributor
  • Posts: 18
  • Country: nl
Re: The Siglent SDG2042X Thread
« Reply #1413 on: August 19, 2021, 09:27:37 am »
Hi,

Anyone tried the SCPI mode command?
I can get it from PHASE-LOCKED to INDEPENDENT, but MODE PHASE-LOCKED does not work to go back.
Can we report this somewhere?

From programming guide:
3.30 Mode Select Command
DESCRIPTION
This command sets or gets the phase mode.
COMMAND SYNTAX
MODE <parameter>
<parameter>:= {PHASE-LOCKED, INDEPENDENT}.
QUERY SYNTAX
MODE?
RESPONSE FORMAT
MODE <parameter>
EXAMPLE
Set the phase mode to INDEPENDENT:
MODE INDEPENDENT
 

Offline Hexley

  • Regular Contributor
  • *
  • Posts: 198
  • Country: us
Re: The Siglent SDG2042X Thread
« Reply #1414 on: August 19, 2021, 06:03:59 pm »
Could not reproduce the issue on an SDG1032X. The MODE command switches from PHASE-LOCKED to INDEPENDENT and back to PHASE-LOCKED as expected.

Any chance of a typo in your SCPI command string?
 

Offline yaybee

  • Contributor
  • Posts: 18
  • Country: nl
Re: The Siglent SDG2042X Thread
« Reply #1415 on: August 21, 2021, 06:38:20 am »
Thx,

I am using the Testcontroller of HKJ and it shows the right command being send. However this is the only command with a dash in it I use.
Need to make a line trace to see what is actually transmitted.
 

Offline Hexley

  • Regular Contributor
  • *
  • Posts: 198
  • Country: us
Re: The Siglent SDG2042X Thread
« Reply #1416 on: August 21, 2021, 04:56:51 pm »
FWIW, I also used HKJ's software. Here is a screen dump for reference. Hope it helps.
 

Offline yaybee

  • Contributor
  • Posts: 18
  • Country: nl
Re: The Siglent SDG2042X Thread
« Reply #1417 on: August 26, 2021, 06:37:51 pm »
Thx again,

I made a trace with WireShark and I cannot see any errors on the input, but still no mode switch.

Trace from INDEPENDENT to PHASE-LOCKED , this does not work:
Code: [Select]
234 126.942140 192.168.1.101 192.168.1.11 VXI-11 Core 126 V1 DEVICE_WRITE Call (Reply In 235) LID=0 mode?\n
235 126.943784 192.168.1.11 192.168.1.101 VXI-11 Core 90 V1 DEVICE_WRITE Reply (Call In 234) No Error
236 126.961020 192.168.1.101 192.168.1.11 VXI-11 Core 122 V1 DEVICE_READ Call (Reply In 237) LID=0
237 126.962630 192.168.1.11 192.168.1.101 VXI-11 Core 114 V1 DEVICE_READ Reply (Call In 236) No Error MODE INDEPENDENT\n
395 253.518632 192.168.1.101 192.168.1.11 VXI-11 Core 138 V1 DEVICE_WRITE Call LID=0 MODE PHASE-LOCKED\n
396 253.520265 192.168.1.11 192.168.1.101 VXI-11 Core 90 V1 DEVICE_WRITE Reply (Call In 395) No Error
407 257.349581 192.168.1.101 192.168.1.11 VXI-11 Core 126 V1 DEVICE_WRITE Call (Reply In 408) LID=0 mode?\n
408 257.351193 192.168.1.11 192.168.1.101 VXI-11 Core 90 V1 DEVICE_WRITE Reply (Call In 407) No Error
409 257.362494 192.168.1.101 192.168.1.11 VXI-11 Core 122 V1 DEVICE_READ Call (Reply In 410) LID=0
410 257.364713 192.168.1.11 192.168.1.101 VXI-11 Core 114 V1 DEVICE_READ Reply (Call In 409) No Error MODE INDEPENDENT\n

Trace from PHASE-LOCKED to INDEPENDENT, this works:
Code: [Select]
21 10.449654 192.168.1.101 192.168.1.11 VXI-11 Core 126 V1 DEVICE_WRITE Call (Reply In 22) LID=0 mode?\n
22 10.451537 192.168.1.11 192.168.1.101 VXI-11 Core 90 V1 DEVICE_WRITE Reply (Call In 21) No Error
23 10.461278 192.168.1.101 192.168.1.11 VXI-11 Core 122 V1 DEVICE_READ Call (Reply In 24) LID=0
24 10.463151 192.168.1.11 192.168.1.101 VXI-11 Core 114 V1 DEVICE_READ Reply (Call In 23) No Error MODE PHASE-LOCKED\n
74 29.456721 192.168.1.101 192.168.1.11 VXI-11 Core 138 V1 DEVICE_WRITE Call LID=0 MODE INDEPENDENT\n
75 29.458428 192.168.1.11 192.168.1.101 VXI-11 Core 90 V1 DEVICE_WRITE Reply (Call In 74) No Error
79 35.880618 192.168.1.101 192.168.1.11 VXI-11 Core 126 V1 DEVICE_WRITE Call LID=0 mode?\n
80 35.882400 192.168.1.11 192.168.1.101 VXI-11 Core 90 V1 DEVICE_WRITE Reply (Call In 79) No Error
81 35.897741 192.168.1.101 192.168.1.11 VXI-11 Core 122 V1 DEVICE_READ Call (Reply In 82) LID=0
82 35.899510 192.168.1.11 192.168.1.101 VXI-11 Core 114 V1 DEVICE_READ Reply (Call In 81) No Error MODE INDEPENDENT\n

So I hope someone will test this on the SDG2042X/SDG2122X with firmware 2.01.01.35R3B2, just to be sure.

Later this week I will publish my latest version of the SDG Testcontroller config. I hope you have a look at it.
 

Offline Orange

  • Frequent Contributor
  • **
  • Posts: 348
  • Country: nl
Re: The Siglent SDG2042X Thread
« Reply #1418 on: August 26, 2021, 07:04:01 pm »
Yep, this is a bug in firmware 2.01.01.35R3B2

Python code
-generator is in phase locked mode when issued-
Code: [Select]
inst.write('*IDN?')
print(inst.read())
inst.write('MODE?')
print(inst.read())

inst.write('MODE INDEPENDENT')
inst.write('MODE?')
print(inst.read())

inst.write('MODE PHASE-LOCKED')
inst.write('MODE?')
print(inst.read())

Output

Code: [Select]
Siglent Technologies,SDG2122X,SDG2XCAC5RXXXX,2.01.01.35R3B2

MODE PHASE-LOCKED

MODE INDEPENDENT

MODE INDEPENDENT
 

Offline Hexley

  • Regular Contributor
  • *
  • Posts: 198
  • Country: us
Re: The Siglent SDG2042X Thread
« Reply #1419 on: August 27, 2021, 12:02:16 am »
So I hope someone will test this on the SDG2042X/SDG2122X with firmware 2.01.01.35R3B2, just to be sure.

Later this week I will publish my latest version of the SDG Testcontroller config. I hope you have a look at it.
It is interesting that the firmware levels for 1000X and 2000X have diverged. The 1000x is still on  V1.01.01.33R1B6. I thought they were kept in sync, but perhaps not. Not sure that I would be in a hurry to upgrade to 35R3B2, even if it is released for the 1000X family. :-)

Looking forward to trying your new config file for TC.
 

Offline yaybee

  • Contributor
  • Posts: 18
  • Country: nl
Re: The Siglent SDG2042X Thread
« Reply #1420 on: August 28, 2021, 06:36:26 pm »
@Orange, thanks for confirming the error.

@Hexley, the new Testcontroller version is available, see https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/msg3652198/#msg3652198
 

Offline Hexley

  • Regular Contributor
  • *
  • Posts: 198
  • Country: us
Re: The Siglent SDG2042X Thread
« Reply #1421 on: August 28, 2021, 06:57:31 pm »
@Hexley, the new Testcontroller version is available, see https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/msg3652198/#msg3652198
Got it and loaded it. Will report any feedback in HKJ's thread.
 

Offline Messtechniker

  • Frequent Contributor
  • **
  • Posts: 782
  • Country: de
  • Old analog audio hand - No voodoo.
Re: The Siglent SDG2042X Thread
« Reply #1422 on: September 03, 2021, 06:30:26 am »
My SDG2042X produces a bit of 50 Hz noise thus affecting
any THD + Noise measurements :scared:
See PICs. This noise is definitely from the generator,
since is disappears upon switching the generator output off.
Are any mods known for this?



Agilent 34465A, Siglent SDG 2042X, Hameg HMO1022, R&S HMC 8043, Peaktech 2025A, Voltcraft VC 940, M-Audio Audiophile 192, R&S Psophometer UPGR, 3 Transistor Testers, DL4JAL Transistor Curve Tracer, UT622E LCR meter
 

Offline hpw

  • Frequent Contributor
  • **
  • Posts: 366
  • Country: 00
Re: The Siglent SDG2042X Thread
« Reply #1423 on: September 03, 2021, 08:48:05 am »
A simple ground loop issue... use star connections :D

Or use symmetric setup one as + the other phase inverted.

Also for Audio measurement not the yellow one the egg... as first harmonics at -90 dB
 

Offline ebastler

  • Super Contributor
  • ***
  • Posts: 6510
  • Country: de
Re: The Siglent SDG2042X Thread
« Reply #1424 on: September 03, 2021, 12:34:16 pm »
A simple ground loop issue... use star connections :D
Or use symmetric setup one as + the other phase inverted.
Or, since the spectrum was apparently acquired by AudioTester PC software: If it is running on a notebook, just run it on batteries for the duratrion of the measurement.

Quote
Also for Audio measurement not the yellow one the egg... as first harmonics at -90 dB
Well, it's a 16 bit generator. Not too bad, is it?
 
The following users thanked this post: Johnny B Good, Neptuni


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf