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 »

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 »

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

Re: Capturing 4M samples with 3204A

Post by Hitesh »

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,

Post Reply