Post general discussions on using our drivers to write your own software here
- Posts: 0
- Joined: Tue Oct 27, 2020 2:55 pm
I am writing a python acquisition script for a 5444D picoscope with the ps5000a library.
I would like to use the ps5000aGetTriggerInfoBulk function, and I need to use the structure PS5000A_TRIGGER_INFO, but I get an error at runtime:
'Ps5000alib' object has no attribute 'PS5000A_TRIGGER_INFO'
This is my code :
Code: Select all
So, how can I use this object to pass it into the ps5000aGetTriggerInfoBulk function ?
- PICO STAFF
- Posts: 301
- Joined: Tue Oct 21, 2014 3:07 pm
- Posts: 0
- Joined: Tue Jul 13, 2021 9:58 am
I tried to run the example ps5000aRapidBlockExample.py which AndrewA posted but for some reason the code line 296 causes the same error message as posted by victor93. Before the error occurs the connection with the device can be established (the device clicks and blinks).
Code line 296: Ten_TriggerInfo = (ps.PS5000A_TRIGGER_INFO*10) ()
Error message: 'Ps5000alib' object has no attribute 'PS5000A_TRIGGER_INFO'
However, other examples like ps5000aBlockExample.py work properly (https://github.com/picotech/picosdk-pyt ... mple.py#L1)
Can anyone help find the bug in the example code?