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: 394
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

fh_mmr
Newbie
Posts: 0
Joined: Tue Jul 13, 2021 9:58 am

Re: Use ps5000aGetTriggerInfoBulk with picoscope 5444D and python

Post by fh_mmr »

Hi,
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?

AndrewA's post:
AndrewA wrote:
Fri May 07, 2021 1:51 pm
Hi,
This has been used here in RapidBlockExample-
https://github.com/picotech/picosdk-pyt ... le.py#L294

kalidass
Newbie
Posts: 0
Joined: Sat Jan 22, 2022 5:38 am

Re: Use ps5000aGetTriggerInfoBulk with picoscope 5444D and python

Post by kalidass »

Hi,

I am running ps5000aRapidBlockExample.py code for collecting a range of wave forms.
I wand to adjust the timeStampCounter parameter in PS5000A_TRIGGER_INFO to adjust the time interval between the trigger points of captures within a single rapid block run.

Can any body help.

Regards,
K

Post Reply