How to set voltage range to auto mode??

Post general discussions on using our drivers to write your own software here
Post Reply
Sarawuth
Newbie
Posts: 0
Joined: Fri Nov 18, 2022 5:03 am

How to set voltage range to auto mode??

Post by Sarawuth »

I am working on pico5444B with python. I can only set the voltage to some range like "PS5000A_20V". I want to know how to set this voltage range to auto mode.

here are some of my code

channel = ps.PS5000A_CHANNEL["PS5000A_CHANNEL_C"]
chCRange = ps.PS5000A_RANGE["PS5000A_2V"]
status["setChC"] = ps.ps5000aSetChannel(chandle, channel, 1, coupling_type, chCRange, 0)
assert_pico_ok(status["setChC"])

Martyn
Site Admin
Site Admin
Posts: 4246
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: How to set voltage range to auto mode??

Post by Martyn »

The Auto mode in the PicoScope software is manually performed within the software itself, there is no actual auto mode on the device. You can perform the same type of approach by looking at the returned ADC counts and then making a decision as to whether you need to go up or down a range, or stay at the current setting.
Martyn
Technical Support Manager

Post Reply