Code: Select all
from ctypes import *
from picosdk.constants import make_enum
from picosdk.library import Library
class PicoEnumlib(Library):
def __init__(self):
super(PicoEnumlib, self).__init__("ps6000a")
picoEnum = PicoEnumlib()
I am currently trying to get a Pico2204A working on a Pi-armhf with Python.
1. Call to ps6000a driver is hardcoded in what looks like a general enums file. Is this to be expected or is the file not a general enum file?
2. Do I have to install the ps6000a driver for running a ps2000 device or am I stuck in a dependency blackhole?
3. If the PicoDeviceEnums.py is not a general enum file, why is it called in all of the ps2000Examples?
4. Does the ps2000.py wrapper implement/enumerate all the necessary and important enum values as seen in the snippet below?
streaming_mode.py
Code: Select all
from picosdk.PicoDeviceEnums import picoEnum
res = ps2000.ps2000_set_channel(
device.handle,
picoEnum.PICO_CHANNEL['PICO_CHANNEL_A'],
True,
picoEnum.PICO_COUPLING['PICO_DC'],
ps2000.PS2000_VOLTAGE_RANGE['PS2000_500MV'],
)