Products > Test Equipment

Siglent SDS1104X-E and SDS1204X-E: Bode plot with a non-Siglent AWG

<< < (27/35) > >>

awakephd:

--- Quote from: Knutselaar on September 13, 2024, 05:51:05 pm --- Best awakephd,

Did you change  on line 12 of esp_config.h:
#define AWG FY3200
in
#define AWG FY6900

The last compiling I did was with the FY3200.

Knutselaar

--- End quote ---

Yes, I did change it to #define AWG FY6900, but as bateau020 says, the problem seems to be the need for the UDP connection.

However, your fix for the FY6900 in an earlier post, or something like it, seems to be needed in the sds1004x_bode python code:

 
--- Quote from: Knutselaar on May 25, 2024, 06:06:28 pm ---The problem of frequency adjustment in the new FY6900 60MHz mentioned by bigpriap a few posts back:

I have changed in esp_fy6900.cpp line 64 and 73 from

snprintf(command, 19, "WMF%08lu000000\n", frequency);

 Into

snprintf(command, 19, "WMF%08lu\n", frequency);

--- End quote ---

awakephd:

--- Quote from: bateau020 on September 12, 2024, 04:54:26 am ---Can you test the other fy driver: fy6600? 

...

EDIT: found a stupid bug (missing one letter in a function name). The "fy" driver should be better now. Tell me if it works.

--- End quote ---

bateau, the python code works better now with the fy driver, in that it does not crash, and it does attempt to respond to the settings coming from the SDS804X oscilloscope. However, as I alluded to in the post just above, the version of the FY6900-60M that I have (firmware 1.5.4) does not recognize the frequency setting as it is currently formatted:


--- Code: ---Waiting for connection request...

Incoming connection from 192.168.0.201:810.
VXI-11 CREATE_LINK, SCPI command: inst0
VXI-11 DEVICE_WRITE, SCPI command: C1:BSWV?
VXI-11 DEVICE_READ, SCPI command: None
VXI-11 DESTROY_LINK, SCPI command: None
VXI-11 moving to TCP port 9014

Waiting for connection request...

Incoming connection from 192.168.0.201:810.
VXI-11 CREATE_LINK, SCPI command: inst0
VXI-11 DEVICE_WRITE, SCPI command: C1:BSWV FRQ,2234.4898
C1:BSWV FRQ,2234.4898
Warning: WMF00002234489800 did not produce an expected response after 2 retries
VXI-11 DESTROY_LINK, SCPI command: None
VXI-11 moving to TCP port 9015
--- End code ---

If I try sending the FY6900 the command as WMF2234.4898\n it works perfectly - yes, with the decimal point, no leading or trailing zeros. When it gets something like WMF00002234489800\n it sets the frequency to 60 MHz.

I note also in the fragment above that the oscilloscope appears to be asking for some feedback - where it issues the command C1:BSWV? - I can't tell whether the program is giving it the desired feedback, or simply ignoring this, and I don't know if it matters. I forgot to run it with VERBOSE = True, so I will report back when I have a chance to do that in case that gives more information.

I also tried it with the fy6600 driver. It produced similar results, i.e, unsuccessful results - one difference being that it did not report back whether the frequency setting was successful, but as I watched the FY6900 screen, it clearly was not successful. I'm guessing it uses the same formatting as the fy driver does. Here is a bit of the output:


--- Code: ---Waiting for connection request...

Incoming connection from 192.168.0.201:810.
VXI-11 CREATE_LINK, SCPI command: inst0
VXI-11 DEVICE_WRITE, SCPI command: C1:BSWV?
VXI-11 DEVICE_READ, SCPI command: None
VXI-11 DESTROY_LINK, SCPI command: None
VXI-11 moving to TCP port 9018

Waiting for connection request...

Incoming connection from 192.168.0.201:810.
VXI-11 CREATE_LINK, SCPI command: inst0
VXI-11 DEVICE_WRITE, SCPI command: C1:BSWV FRQ,4295.71429
C1:BSWV FRQ,4295.71429
VXI-11 DESTROY_LINK, SCPI command: None
VXI-11 moving to TCP port 9019

--- End code ---

I have worked my way through the espBode code, but have only begun on the sds1004x_bode code; however, I feel like the combination of UDP fix from the latter plus frequency format fix from the former may prove successful!

bateau020:
Uploaded a new version with a specific fy6900 driver. Tell me how it works.

About C1:BSWV?: it is indeed not implemented right now, as it seems to be ignored by the scope.

awakephd:
Many thanks! I may have jumped the gun - I tried making one change in the set_frequency method of the FYgenAWG class:

previous version:

"%014u" % uhz,

my change:

"%.6f" % freq,

and ... drum roll ... it works!

I was going to attach a screenshot ... but I can't seem to get it to attach. :(

awakephd:


Ah, got it - I was misunderstanding the way the forum handled the image attachment. Here it is! Simple low-pass RC filter (330Ω resistor, 10nF capacitor).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod