I've started to write a Python interface code & wanted to put it up here, even though it's far from complete! In case anyone else is doing the same...
It's on github at https://github.com/colinoflynn/pico-python
I know there have been other Python interfaces posted, but they always seemed to be too instrument-specific. I'm trying to use a generic base-class which is extended for each instrument class (e.g. PS6000, etc).
It also gives you "nice" error messages, e.g. if something goes wrong it raises an exception, which if you don't have a handler looks like this:
Code: Select all
IOError: Error calling setChannel: PICO_INVALID_ANALOGUE_OFFSET (An impossible analogue offset value was specified in ps6000SetChannel.)
Still needs more work obviously! But Python is pretty damn easy to do almost anything in, so once it's running will be very handy I think.