Capturing 4M samples with 3204A

Post general discussions on using our drivers to write your own software here
Post Reply
va3ttn
Newbie
Posts: 0
Joined: Tue Nov 20, 2012 4:44 pm

Capturing 4M samples with 3204A

Post by va3ttn » Sat Dec 08, 2012 7:17 pm

I need to capture ~4M samples from a C program.
Only one channel is active. Trigger source is EXT.

To get 4M samples with Picoscope 6, the Trigger (EXT) must be set to Single,
otherwise only 2M samples can be captured.

Now back to C.
With nSegments = 1, ps3000aMemorySegments returns nMaxSamples = 4194208, that's fine.
Then I call GetTimebase and it returns maxSamples = 2097104 (half of the above value).
ps3000aRunBlock also works only up to 2097104 samples.

How to achieve an equivalent of "Single" triggering in C and get 4M samples?

va3ttn
Newbie
Posts: 0
Joined: Tue Nov 20, 2012 4:44 pm

Re: Capturing 4M samples with 3204A

Post by va3ttn » Mon Dec 10, 2012 10:24 am

I solved this easily by disabling the B channel explicitly right after OpenUnit.

It would be nice if OpenUnit documentation stated that all channel are active immediately.

Hitesh
Site Admin
Site Admin
Posts: 2793
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Capturing 4M samples with 3204A

Post by Hitesh » Tue Dec 11, 2012 11:39 am

Hi va3ttn,

Thank you for your feedback. I can confirm that you do need to explicitly turn off the other channels in order to be able to use the maximum memory.

I will pass this on to our Technical Authoring team.

Best wishes,
Hitesh

Technical Support Engineer

Post Reply