Use ps5000aGetTriggerInfoBulk with picoscope 5444D and python

Post general discussions on using our drivers to write your own software here
Post Reply
victor93
Newbie
Posts: 0
Joined: Tue Oct 27, 2020 2:55 pm

Use ps5000aGetTriggerInfoBulk with picoscope 5444D and python

Post by victor93 »

Hi,

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

 trig_status=0
    segment_index=0
    trigger_index=0
    trigger_time=0
    time_units=0
    times_stamp_counter=0
   
    trigger_info=ps.PS5000A_TRIGGER_INFO(trig_status,
                                         segment_index,
                                         trigger_index,
                                         trigger_time,
                                         time_units,
                                         0,
                                         times_stamp_counter)

So, how can I use this object to pass it into the ps5000aGetTriggerInfoBulk function ?

Thanks,

Victor

AndrewA
PICO STAFF
PICO STAFF
Posts: 301
Joined: Tue Oct 21, 2014 3:07 pm

Re: Use ps5000aGetTriggerInfoBulk with picoscope 5444D and python

Post by AndrewA »

Hi,
This has been used here in RapidBlockExample-
https://github.com/picotech/picosdk-pyt ... le.py#L294
Regards Andrew
Technical Specialist

Post Reply