Skip to content
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

Draft: Fix trigger threshold calculation for all scopes #88

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alexxcons
Copy link
Collaborator

@alexxcons alexxcons commented Dec 14, 2021

The old calculation assumed that +5V always matches PSXXXX_MAX_VALUE,
however that is only the case for the ps3000 digital inputs.

On all analog inputs, the values which matches PSXXXX_MAX_VALUE depends on
the according range of the channel (ADC count)

(On AUX, the range is fixed to +/- 1V)

(This already was fixed for ps6000 in #86)

"Draft", because the changes build fine, but first need to be tested on all scope-types (check required voltage to actually trigger)

References (Check for method psXXXXSetSimpleTrigger ):
https://www.picotech.com/download/manuals/picoscope-4000-series-a-api-programmers-guide.pdf
https://www.picotech.com/download/manuals/PicoScope3000SeriesAApiProgrammersGuide.pdf
https://www.picotech.com/download/manuals/picoscope-6000-series-programmers-guide.pdf

The old calculation assumed that +5V always matches PSXXXX_MAX_VALUE,
however that is only the case for the ps3000 digital inputs

On any other input, the values which matches PSXXXX_MAX_VALUE depends on
the according range of the channel (ADC count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant