Python wrappers always return with PICO_INFO_UNAVAILABLE

Post general discussions on using our drivers to write your own software here
Post Reply
fredschreck
Newbie
Posts: 0
Joined: Tue Feb 20, 2018 10:25 am

Python wrappers always return with PICO_INFO_UNAVAILABLE

Post by fredschreck » Tue Feb 20, 2018 10:47 am

Hello PicoTechSupport,

I tried to access a PicoScope 3403DMSO via python using the actual API wrappers. The drivers are installed from your Linux repository (all of them including libpswrappers) and the python wrappers are installed from github (for all users with 'sudo python setup.py install').
All provided python examples fail with 'PICO_INFO_UNAVAILABLE'. Basically this few lines already result 'PICO_INFO_UNAVAILABLE':

Code: Select all

#!/usr/bin/env python
import picosdk.ps3000a
ps = ps3000a.Device()
status = ps.open_unit()
print ps.m.pico_tag(status)
I'm able to get the LED blinking with 'ps.flash_led(-1)' but most functions still result in PICO_INFO_UNAVAILABLE.

The Picoscope Software and the picosdk-c-examples for ps3000a from github work flawlessy, after being build with './autogen.sh & make'

I'm working on an Ubuntu 17.04 and added my user to the pico group.

Maybe someone has an idea what I'm doing wrong here?

Best Regards,
Fred

fredschreck
Newbie
Posts: 0
Joined: Tue Feb 20, 2018 10:25 am

Re: Python wrappers always return with PICO_INFO_UNAVAILABLE

Post by fredschreck » Tue Feb 20, 2018 3:26 pm

It seems that the variant "3403DMSO" is missing in the 'ps3000a.py' file in function '_set_variant_info()' of class 'Device' (in the long if statement starting at line 744). By expanding the statement with

Code: Select all

        
elif self.info.variant_info == "3403DMSO":
            self.info.num_channels = 4
            self.info.num_ports = 2
            self.info.min_range = self.m.Ranges.r20mv
            self.info.max_range = self.m.Ranges.r20v
            self.info.has_awg = True
            self.info.awg_size = 32768
            self.info.has_ets = True
the basic script shown on github delivers data.

Best regards,
Fred

Hitesh
Site Admin
Site Admin
Posts: 2829
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Python wrappers always return with PICO_INFO_UNAVAILABLE

Post by Hitesh » Wed Feb 21, 2018 9:44 am

Hi Fred,

Thank you for identifying the issue and posting a resolution.

We will update our Python files in due course.

Regards,
Hitesh

Technical Support Engineer

Post Reply