Test and Measurement Forum

PS5000a - Question on Rapid Block Mode

Post general discussions on using our drivers to write your own software here

PS5000a - Question on Rapid Block Mode

Postby 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
pietro.bernardi
Newbie
 
Posts: 0
Joined: Thu Jan 18, 2018 4:07 pm

Re: PS5000a - Question on Rapid Block Mode

Postby 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
Martyn
Site Admin
Site Admin
 
Posts: 2900
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PS5000a - Question on Rapid Block Mode

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

Thank you Martyn! :D
pietro.bernardi
Newbie
 
Posts: 0
Joined: Thu Jan 18, 2018 4:07 pm


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests