Pico Scope 6824E C# RunBlock method max nº of samples

Post your .Net discussions here
Post Reply
diogoalves92
Newbie
Posts: 0
Joined: Mon Sep 21, 2020 9:28 am

Pico Scope 6824E C# RunBlock method max nº of samples

Post by diogoalves92 »

Greetings,

I am implementing the 6824E on a C# application in which I need to read and store values from 7 channels taken during a 28 second time interval.

I've been looking at the ps6000aExamples, more specifically, the BlockModeExampleCallback that (if I understood correctly) signals the picoscope to collect numSamples amount of samples with idealTimeinterval time interval between each, waits the data to be captured by the picoscope and then reads that data from the picoscope to the pc and saves it on a .csv file. Now, my questions are;

-What is the sample limit for this blockmode capturing? I mean, if the picoscope is storing the values it captures before "releasing" them or sending them to the pc after the block capture is complete, there should be a maximum number of values/samples it can hold.
-Is this maximum number of samples individual for each channel or altogether?

Thanks in advance.

Siebje
Newbie
Posts: 0
Joined: Tue Mar 13, 2012 1:33 pm

Re: Pico Scope 6824E C# RunBlock method max nº of samples

Post by Siebje »

Limits are covered in the datasheet https://www.picotech.com/download/manua ... -sheet.pdf
6*24E: 4GS (2 GS at 10/12-bit)
6*04E: 2GS
6203E: 1GS

And yes, the memory is shared between active channels.

bennog
Advanced User
Advanced User
Posts: 71
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: Pico Scope 6824E C# RunBlock method max nº of samples

Post by bennog »

If you are taking in samples for 28 seconds I will suggest using streaming mode.
For this period the number of samples per second you can capture is higher than using the scope memory.

Benno

diogoalves92
Newbie
Posts: 0
Joined: Mon Sep 21, 2020 9:28 am

Re: Pico Scope 6824E C# RunBlock method max nº of samples

Post by diogoalves92 »

Thank you for the responses. Data streaming seems to be the logical move but i am basing myself on the c# examples at github and it doesn't contemplate data streaming, and there isn't programmer's guide for 6000E series so i am going to try to do it with blocks. The issue will be the fact that i won't even able to capture all the data due to likely overhead between capturing blocks.

I tried to capture 4GS using 8 bit resolution on the 6824E but since the maximum size of an array would be 2GB in C# i set gcAllowVeryLargeObjects to true to enable a larger array that could store all the data. PS6000a.SetDataBuffers returned 516 error status, does anyone know why?

Thanks.

bennog
Advanced User
Advanced User
Posts: 71
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: Pico Scope 6824E C# RunBlock method max nº of samples

Post by bennog »

Streaming mode will not get you beyond 40MS/sec or somethin like that.

if you are sampling 28 sec at 4G/sec that means you need about 128 GB of ram in the scope.

What are you measuring ?

Benno

Post Reply