User manual

Programming with the PicoScope 6000 Series16
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
3.5.3.1
Using ETS mode
This is the general procedure for reading and displaying data in ETS mode using a
single memory segment:
1. Open the oscilloscope using ps6000OpenUnit.
2. Select channel ranges and AC/DC coupling using ps6000SetChannel.
3. Using ps6000GetTimebase, select timebases until the required nanoseconds per
sample is located.
4. Use the trigger setup functions ps6000SetTriggerChannelConditions,
ps6000SetTriggerChannelDirections and ps6000SetTriggerChannelProperties to
set up the trigger if required.
5. Start the oscilloscope running using ps6000RunBlock.
6. Wait until the oscilloscope is ready using the ps6000BlockReady callback (or poll
using ps6000IsReady).
7. Use ps6000SetDataBuffer to tell the driver where your memory buffer is.
8. Transfer the block of data from the oscilloscope using ps6000GetValues.
9. Display the data.
10. While you want to collect updated captures, repeat steps 6-9.
11. Stop the oscilloscope using ps6000Stop.
12. Repeat steps 5 to 11.