PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
PICO.SetChannel(PS3000.Channel.ChannelA , true , PS3000.Coupling.DC , PS3000.Range.Range2V);
PICO.SetChannel(PS3000.Channel.ChannelA,false, PS3000.Coupling.DC, PS3000.Range.Range2V);
Code: Select all
PICO.SetChannel(PS3000.Channel.ChannelA , false, PS3000.Coupling.DC , PS3000.Range.Range2V);
PICO.SetChannel(PS3000.Channel.ChannelA, true, PS3000.Coupling.DC, PS3000.Range.Range2V);
Code: Select all
Your buffers will not be modified by PS3000.dll unless there is a call to ps3000_get_values or ps3000_get_times_and_values. If you make a call to these functions without first calling run, then undefined behaviour will occur.
Code: Select all
PICO.RunBlock(NumOfSamples, timaBase, overSemple, out timeIndesposedMs);
while(!PICO.Ready())
;
PICO.GetValues(bufferA, bufferB, bufferC, bufferD, out overflows , numValues);
the calculation in the C file seems different from the formula I read about,Q= EFSR / (2^m -1)
Where Q is resolution in volts, EFSR is the full scale voltage range, and M is resolution in bits. The number of intervals is given by the number of available levels minus one.
Code: Select all
Scaled Volts = 16bitAdcCount * RangeMax / 32767
eg. For an Adc Count of 3277 on the +/-10V range:
Scaled Volts = 3277 * 10 / 32767 = 1V