PS5000a - Question on Rapid Block Mode

Post general discussions on using our drivers to write your own software here
Post Reply
pietro.bernardi
Newbie
Posts: 0
Joined: Thu Jan 18, 2018 4:07 pm

PS5000a - Question on Rapid Block Mode

Post by pietro.bernardi » Thu Jan 18, 2018 4:20 pm

Hi,
I'm writing a script in Python to use a PicoScope 5244B in Rapid Block Mode.
I divided the internal memory in 1000 segments and set the number of captures to 1000.
If I start the scope with ps5000aRunBlock, will it automatically fill each of the segments with each capture?
So capture 0 in segment 0, capture 1 in segment 1, etc. ?

I'm getting confused because "ps5000aRunBlock" needs "segmentIndex" as an argument and I can't understand if I have to call "RunBlock" in a loop to fill each segment or if a single call will do the job :roll:

Thank you in advance for your attention :D
Pietro

Martyn
Site Admin
Site Admin
Posts: 3346
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PS5000a - Question on Rapid Block Mode

Post by Martyn » Fri Jan 19, 2018 7:05 am

If you use SetMemorySegments and SetNoOfCaptures then one call to RunBlock will collect all the segments you have requested. If you stop the scope before this has been completed you can use GetNoOfCaptures to see how many have been collected.
Martyn
Technical Support Manager

pietro.bernardi
Newbie
Posts: 0
Joined: Thu Jan 18, 2018 4:07 pm

Re: PS5000a - Question on Rapid Block Mode

Post by pietro.bernardi » Fri Jan 19, 2018 12:29 pm

Thank you Martyn! :D

Post Reply