colinoflynn / pico-python

PicoScope Python Interface
Other
101 stars 80 forks source link

setChannel AC coupling quirk #161

Closed CreateRemoteThread closed 4 years ago

CreateRemoteThread commented 4 years ago

I stumbled into a quirk using a ps6000 with AC coupling - the first capture after setChannel needs to be discarded. I came across this forum post, indicating that you need to call runBlock before the channel setting is actually passed to the oscilloscope - but from my brief testing, this only seems to happen if AC coupling is selected.

I'm not sure what models are affected, the forum thread indicates 5xxx as well

Happy to put together a PR but I'm not sure what's the right approach here - surprise calling runBlock on a user's behalf seems a bit unsafe?

hmaarrfk commented 4 years ago

This seems out of scope for this library.

We don't have much documentation as things all functions are the same as their upstream counterparts.

Happy to keep this information in a section of the readme.