I am setting up my Pico 2206A Oscilloscope using C++ and It seems to all compile. Throughout I assign the result of the function calls to a variable and ensure the returned PICO_STATUS is PICO_OK.
I am using Block Mode and I have configured both channels A and B previously in the code and they both also return PICO_OK.
The data I am trying to capture is transmitted to the oscilloscope when I flip a switch, hence the use of block mode as the data is a pulse rather than continuous. Although when the switch is in the off position, the data capture ends instantly as if the trigger has been set off (although I haven't flipped the switch so the data is not transmitted). When the switch starts in the on position, the data capture does not end until I flip the switch off, which does not allow the data to be captured as the data is sent instantaneously as I flip the switch from off to on.
I have ensured I have the switch in the correct position by checking the results in Picoscope 6, using the same trigger.
Any ideas as to why this is not working would be greatly appreciated,
PS2000A_2V is what I put in for the threshold, although the signature of the method asks for a short, I looked through the API enumerated types and thought that the ±2V would work for this value, is this not the case?
iSegmentSamples is gathered from ps2000aMemorySegments( iPicoHandle, NO_OF_SEGMENTS, &iSegmentSamples );
NO_OF_SEGMENTS = 1.
Return Value (iSegmentSamples) = 32682.
TIMEBASE = 1.
OVER_SAMPLE = 0.
iTimeIndisposed = un-initialised as it is a return value.
SEGMENT_INDEX = 0.
Second Parameter = Start Index.
iWantedSamples = iSegmentSamples (32682).
DOWNSAMPLE_RATIO = 1.
SEGMENT_INDEX = 0.
iOverflow = un-initialised as it is a return value.
After this I loop through the two buffers:
iBuffer[0] and iBuffer[1]
and copy and values that != 0 to a memo, but both memos stay blank after the transfer.