I've been trying to set up an advanced trigger on the picoscope 2204a using the python sdk. When writing a modified version of your block capture example program I have set the PS2000_TRIGGER_CONDITIONS, PS2000_TRIGGER_CHANNEL_PROPERTIES, and the PS2000_PWQ_CONDITIONS structures as mentioned in the 2000 series programming guide. Unfortunately when running the program I get the following error:
'Ps2000lib' object has no attribute 'PS2000_TRIGGER_CONDITIONS'
I checked the ps2000.py file and these structures have not been declared there like they are in the ps2000a.py file. Is there an alternative file I need to include or does this file need to be modified?
I had a look at the ps2000a.py and ps6000.py files and I pieced together what seems to be missing. I'm quite new to python so it may not be perfect but this seems to be missing from the ps2000.py file: