pico-python
pico-python copied to clipboard
Cannot set resolution for two channels on 5444B
I use two channels:
ps.setChannel("A","DC",2,enabled=True)
ps.setChannel("B","DC",2,enabled=True)
Then I set resolution:
ps.setResolution("15")
which gives me an error "PICO_INVALID_NUMBER_CHANNELS_FOR_RESOLUTION", and I cannot use resolution higher than 8 bits (but 5444B allows 15 bits for two channels)
@psitronic if you look through the codebase, we never issue errors or do sanitization.
We pass everything straight to the driver. The error you list isn't from us, but from the driver, so I'm not sure if we are the ones that can help you
I would
- Set breakpoints just before the c function calls and ensure that all the parameters are what you expect.
- Try updating your driver.
- If it still doesn't work maybe report back here?
But if you are getting C errors, then you should really post on picotech's forum.
It is also important that you post a Minimal, Complete, and Verifiable example including all the "find and open" commands.