-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct DC50 enum: 2 -> 50 #191
Conversation
is this true for all firmware versions? for all library versions? maybe we need to condition on the version of the library itself before making this change. |
Good question. Hard to know for sure without trying it out on every old dll/firmware. I certainly wouldn't expect them to change the enum between versions. Do you know of any other instances of that happening? I contacted support and they didn't know either. But they are checking it out. You can see the information in Pico Technology\SDK\inc\ directory: in PicoDeviceEnums.h (used by ps6000aApi.h):
vs. ps6000Api.h
|
maybe this is why i broke my scope like 10 years ago.. |
Well, AndrewA at picoscope support confirmed: "PICO_DC_50OHM enum values were never changed" So, I think it's safe to merge. |
so which one is the correct value? 2 or 50? |
For reference, here is the error I ran into that is fixed by this change.
|
50 |
What is the meaning of the return value of
|
That is the "Actual range of the scope as double" returned by _PicoscopeBase.setChannel. in this case, 2.0 is the default value. |
I see. can you add a release note |
oh we have no release notes lol |
Thanks for that fix. I encountered the error as well, but did not investigate further, as I did not need it. When I created the ps6000a file, I took the enum from ps4000a (and there the value is 2) as I expected them to have the same enum values... Finally it is solved, thanks a lot @thennen! |
amazing. thank you for the confirmation that this works!!! |
PS6000a range changed the enum for DC50 coupling from 2 to 50.