azonenberg changed the topic of #scopehal to: libscopehal, libscopeprotocols, and glscopeclient development and testing | https://github.com/azonenberg/scopehal-apps | Logs: https://libera.irclog.whitequark.org/scopehal
<azonenberg> mubes: there's a clang format file in the repo iirc
<d1b2> <mubes> yeah, I was sure I'd used one before 🙂
<d1b2> <mubes> yup, .clang-format, forgot they hide it!
<d1b2> <mubes> @mandl , @dannas Here's SiglentSCPIOscilloscope.cpp modified to use swtiches instead of ifs. I've superficially tested it on SDS2000X+ and it's fine, will give it a full test when you've got a candidate version. I haven't pushed this anywhere, I'll leave it to you guys to update the PR etc.
Kliment has quit [Remote host closed the connection]
Kliment has joined #scopehal
<_whitenotifier-8> [scopehal-pico-bridge] danielkucera opened issue #16: Communication sample - https://github.com/azonenberg/scopehal-pico-bridge/issues/16
<_whitenotifier-8> [scopehal] mandl synchronize pull request #535: begin SDS1104X-E port - https://github.com/azonenberg/scopehal/pull/535
<_whitenotifier-8> [scopehal-pico-bridge] azonenberg commented on issue #16: Communication sample - https://github.com/azonenberg/scopehal-pico-bridge/issues/16#issuecomment-1015018596
<_whitenotifier-8> [scopehal-pico-bridge] azonenberg edited a comment on issue #16: Communication sample - https://github.com/azonenberg/scopehal-pico-bridge/issues/16#issuecomment-1015018596
<_whitenotifier-8> [scopehal-pico-bridge] azonenberg edited a comment on issue #16: Communication sample - https://github.com/azonenberg/scopehal-pico-bridge/issues/16#issuecomment-1015018596
<_whitenotifier-8> [scopehal-pico-bridge] azonenberg commented on issue #16: Communication sample - https://github.com/azonenberg/scopehal-pico-bridge/issues/16#issuecomment-1015019714
Degi_ has joined #scopehal
Degi has quit [Ping timeout: 250 seconds]
Degi_ is now known as Degi
<d1b2> <dannas> Great with that in place it should be easier to add things in the future. With explicit checks for each model and the default case emitting a warning.
<d1b2> <dannas> @mubes re sending multiple config commands: I did check that the settings persisted, but it was just a superficial test. Maybe some commands will be implemented differently. Will experiment some more tonight.
<d1b2> <dannas> @mandl Note that @mubes change does nothing in the default case. I saw that you updated your PR last night to use switch statements but that in that change the SDS2xxx/SDS5xxx is handled in the default clause. I prefer @mubes approach since it makes the code easier to inspect.
<d1b2> <dannas> I hope I don't come across as disagreeable pointing out such things.
<d1b2> <mubes> @dannas just keep your guard up to some events not 'sticking'...but if you can batch commands there are some circumstances it will speed things up a lot.
<d1b2> <dannas> @mubes Yes I'll be on my toes. 🙂
<d1b2> <mubes> The code feels 'cluttered' with all of these switches in it, but I don't expect more than the two cases across all of the scopes (possibly with small tweaks for individual cases) so on balance I think it's better than subclassing. The sample collection routines definitely need simplifying and breaking into parts though.
<d1b2> <dannas> @mubes I agree that the sample collection needs to be factored and maybe some things will be simplified. And I too was balancing between suggesting subclassing vs switches. But switches seems cleanest right now atleast as it keep related code closer together. It's easier to inspect how different models differ for specific commands that way.
<d1b2> <dannas> Time for dayjob. Board bringup on the menu. Will check back in tonight (swedish time)
<d1b2> <mubes> Yeah, for now at least I prefer switches cos you can see how the 'other' case does things...but that might change as the code solidifies. Good luck!
massi has joined #scopehal
<d1b2> <mubes> @mandl I'm confused what has ended up in the repository. Can you please clarify? We shouldn't be doing work twice over.
<azonenberg> mubes: nothing has been merged to master yet. i'm waiting for consensus from you three WRT which PR to review and merge, as well as a report from you to confirm that you've tested and nothing on the 2000 series broke
GenTooMan has quit [Ping timeout: 240 seconds]
<d1b2> <mubes> Ta. Will let you know.
someone-else has joined #scopehal
<d1b2> <mubes> @dannas @mandl Here is a file with the changes from both versions merged. @mandl please review and test on your scope, and push to your PR when/if you're comfortable with it. We need to avoid duplicating effort since we all have limited time available;
Bird|ghosted has joined #scopehal
Bird|otherbox has quit [Ping timeout: 256 seconds]
<_whitenotifier-8> [scopehal-pico-bridge] danielkucera closed issue #16: Communication sample - https://github.com/azonenberg/scopehal-pico-bridge/issues/16
<_whitenotifier-8> [scopehal-pico-bridge] danielkucera commented on issue #16: Communication sample - https://github.com/azonenberg/scopehal-pico-bridge/issues/16#issuecomment-1015328890
bvernoux has joined #scopehal
someone-else has quit [Quit: Connection closed]
GenTooMan has joined #scopehal
someone-else has joined #scopehal
mandl has joined #scopehal
mandl has quit [Client Quit]
mandl has joined #scopehal
mandl has quit [Client Quit]
massi has quit [Remote host closed the connection]
mandl has joined #scopehal
<_whitenotifier-8> [scopehal] mandl synchronize pull request #535: begin SDS1104X-E port - https://github.com/azonenberg/scopehal/pull/535
<mandl> good evening
<mandl> just pushed my code to github
<_whitenotifier-8> [scopehal] mandl synchronize pull request #535: begin SDS1104X-E port - https://github.com/azonenberg/scopehal/pull/535
mandl has quit [Quit: Leaving]
bvernoux has quit [Read error: Connection reset by peer]
mandl has joined #scopehal
mandl has quit [Quit: Leaving]
<_whitenotifier-8> [scopehal] mubes commented on pull request #535: begin SDS1104X-E port - https://github.com/azonenberg/scopehal/pull/535#issuecomment-1015914635