1、关于示波器时间计算的分析
- 125MS /s采样率,理论1S采集125M个点
- 125/50 = 2.5MS采集工频的波形一个周期20ms,即采集一个工频完整波形返回2.5M个点
- 降采样系数(假设500),则最大或最小值的缓存数组长度 = [5000]
- 块模式一次采集2.5M个数返回5000个数,开始下一次块采集
- 块模式采集样本的数量是由参数(在触发事件之后返回的样本数 = 2.5M)决定的
由此过程设置了示波器采集的样本总数,返回的样本数,以及在工频下最大采样率采集一个周期返回的最大样本个数
2、时基计算
-
// This function calculates the sampling rate and maximum number of samples for a //given timebase under the specified conditions.The result will depend on the number of //channels enabled by the last call to ps5000aSetChannel. //This function is provided for use with programming languages that do not support the //float data type.The value returned in the timeIntervalNanoseconds argument is //restricted to integers.If your programming language supports the float type, then //we recommend that you use ps5000aGetTimebase2 instead. //To use ps5000aGetTimebase or ps5000aGetTimebase2, first estimate the //timebase number that you require using the information in the timebase guide.Next, //call one of these functions with the timebase that you have jus