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 have set up my trigger as follows:
- Code: Select all
iStatus = ps2000aSetSimpleTrigger( iPicoHandle, 1, PS2000A_CHANNEL_B, PS2000A_2V, PS2000A_RISING, TRIGGER_DELAY, AUTO_TRIGGER_MS);
//Both TRIGGER_DELAY and AUTO_TRIGGER_MS = 0
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,