Products > Test Equipment

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

<< < (28/35) > >>

awakephd:

--- Quote from: bateau020 on September 13, 2024, 10:14:57 pm ---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.

--- End quote ---

Haven't had a chance to try the new FY6900 driver yet, but took a quick look at it. Looks like you did something similar to what I have above. I am not overly familiar with python, but I'm curious about the format specification you used - "%08.6f" - doesn't this mean a total of 8 characters wide, with 6 digits after the decimal? What happens if the frequency is 100Hz or higher - does python "override" the width specification to allow additional digits before the decimal? Or have I totally misunderstood (highly likely given how little I know python!)?

awakephd:
Well, now that this is working, I have two things to work on:

#1 - get the espBode version to work, and
#2 - figure out why my plot shows the phase starting out flat at around -7° when I was expecting it to be at or close to 0°. Other than that, the plots look exactly like what I predicted based on the component values. Equipment error?? An error in the way I set it up / measured / something??

Sorry for so many posts in a row. Can you tell that I am very excited to see this working?

tautech:

--- Quote from: awakephd on September 14, 2024, 01:06:19 am ---Well, now that this is working, I have two things to work on:

#1 - get the espBode version to work, and
#2 - figure out why my plot shows the phase starting out flat at around -7° when I was expecting it to be at or close to 0°. Other than that, the plots look exactly like what I predicted based on the component values. Equipment error?? An error in the way I set it up / measured / something??

Sorry for so many posts in a row. Can you tell that I am very excited to see this working?

--- End quote ---
Yep, congrats.

More can be learnt here:
https://www.eevblog.com/forum/testgear/siglent-sds1x04x-e-bodeplot-ii-(sfra)-features-and-testing-(coming)/

awakephd:
Thanks, Rob. I've started looking at that thread. Clearly the UI for the Bode plot on the 1000x-e is quite different than the one for the 804x, so that has been a bit confusing, but I shall persevere ...

awakephd:
A bit of progress and a request ...

---------------

First, the request: As described below, I have done some work on the espBode code ... but only on my local copy ... because I am a git / github neophyte. I have known how to do a "git clone" for years, but have never ventured beyond that. I did watch a couple of tutorials last night, but am still not entirely sure how to use it to create a fork from one of the existing github repositories - I am thinking a fork is the best approach, as what I am envisioning, and have done so far, is a pretty thorough rewrite from the current C code to take advantage of C++ classes. I'd also like to incorporate, or at least allow for, the greater functionality of the sds1004x_bode python program as updated by bateau020.

Of course, yet another question is which repository to start from - there are at least 5:

https://github.com/sq6sfo/espBode           last commit was 5 years ago; includes only FY6800; does not include telnet; only for ESP8266
https://github.com/timkoers/espBode        forked from sq6sfo; last commit was 4 years ago; adds FY6600, FY6900
https://github.com/Hamhackin/espBode     forked from timkoers; last commit was 3 years ago; adds JDS2800; adds telnet
https://github.com/hankst69/espBode       forked from Hamhackin; last commit was 1 year ago; no added features, but code cleaned up
https://github.com/Switchleg1/espBode     forked from sq6sfo; last commit was 9 months ago; adds FY6600; allows ESP32 or ESP8266

As the list above shows, sq6sfo seems to be the originator, but there are two separate "families" - the one leading to hankst69, and the one by Switchleg, which has had much more recent activity, but leaves out the additions made by timkoers, Hamhackin, and hankst69.

And then there are the tweaks that Knutselaar added, but I haven't found a github repository for those, and I can't tell which version he started from - presumably either Hamhackin or hankst69, since he includes telnet.

I propose forking from hankst69, adding in the tweaks from Knutselaar, and seeing if Switchleg caught any bugs that the others missed. Now I just need to figure out how to create the fork. I have set up a github account. I'd prefer to do the editing on my local machine. I know there is some way to link the local git directory to the github repository, but I am still confused about which variation of command(s) to use. If anyone has a simple, 1-2-3 guide to point me to, I would be most, most appreciative!

----------------

Now, the progress: Before I get too far down the road of re-writing the espBode code to use UDP, I wanted to be sure that my ESP-01 plus the adapter I made (to regulate the 5v to 3.3v and route the serial lines) were actually communicating with the FY6900. I reworked the .ino file of the espBode project to add a selectable "passthrough" mode via the telnet connection. In the process, I reworked the loop function to use a simple state variable, thus allowing the telnet processing to continue to work even while it is waiting for a connection from the scope. I have attached the result to this post.

I compiled and uploaded this (along with the rest of the existing espBode project), and after a few rounds of debugging, it works beautifully - and more importantly, I can now verify that the ESP-01 is successfully communicating with the FY6900. I connect to the ESP-01 via telnet, enter passthrough mode by sending the word passthrough, and then I can issue the various commands, such as WMF1000 or RMF or so on. It seems to work flawlessly! Sending the word passthrough again turns off passthrough mode, and it is ready to listen for the oscilloscope. But of course, before it can "hear" the SDS804X, I need to implement a UDP option. And that leads back to the request above ...

-------------

On edit: I've made a fork from hankst69 in github: https://github.com/awakephd/espBode. Now if I can just figure out how to coordinate that with my local editing ...

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