Not finding much documentation on the values as set by the program in BlockDataHandler via a call to ps5000GetValues into the array "buffers"?
I have a basic signal generator hooked up to the 5204 outputting a simple sine wave at 3khz/100mV and have the the Scope set to an Input Range of 200mV on Channel A/ timebase of 240ns. Channel B is OFF. Scaling to mV is ON/TRUE. Aggregation is set to OFF. Oversampling is set to 1.
I can gather that the output file in data.txt and the function BlockDataHandler that the data output in the file "data.txt" is
timeInterval, raw ADC, converted (mv), raw ADC, converted (mv) (newline)
here are the first 3 lines of data.txt when running a simply Block Data Immediate:
Code: Select all
0, 5120, 31 , -12851 , -790
240 , 5376, 33 , -12851 , -79240
480,..... , -12851 , -79480
720,..... , -12851 , -79720
I can deduce the first column is the sample time based on the timebase/interval, the 2nd column is the raw data, the 3rd column is the converted to mV data.
What is in the buffers[2][sample] and buffers [3][sample]???
it looks like what is in buffers[3] is related to the time interval and perhaps buffers[2] is some kind of default value but I don't see any documentation on how to read this and wondering what that is. I read in other threads about the values being used with aggregation turned on, however, the sample program seems to default to off or RATIO_MODE_NONE is set to the GetValues function.
Can one tell me where to find this data setup and/or what the last pair of data represents???
Jay