Pico Communications PicoScope 2104 Using different modes, Using block mode, Using streaming mode

Page 26

24

PicoScope 2104 & 2105 PC Oscilloscope User Guide

3.5Using different modes

3.5.1Introduction

The previous section on advanced features supplied the programmer with extended information on PicoScope 2000 Series PC Oscilloscopes. The C sample program, ps2000con.c, demonstrates how to use the functions of the driver software, and includes examples showing how to use each of the modes available.

3.5.2Using block mode

This is the general procedure for reading and displaying data in block mode:

1.Open the unit using ps2000_open_unit()

2.Select channel range and AC/DC switch using ps2000_set_channel()

3.Using ps2000_set_trigger(), set the trigger if required

4.Using ps2000_get_timebase(), select timebases until the required time per sample in nanoseconds is located

5.Start the unit running using ps2000_run_block()

6.Wait until the unit says it is ready using ps2000_ready()

7.Transfer the block of data from the unit using ps2000_get_values() or

ps2000_get_times_and_values()

8.Display the data

9.Repeat steps 5 to 8 as many times as necessary 10.Stop the unit using ps2000_stop().

3.5.3Using streaming mode

This is the general procedure for reading and displaying data in streaming mode:

1.Open the unit using ps2000_open_unit()

2.Select channel range and AC/DC switch using ps2000_set_channel()

3.Start the unit running using ps2000_run_streaming()

4.Transfer the block of data from the unit using ps2000_get_values()

5.Display the data

6.Repeat steps 4 to 5 as necessary

7.Stop the unit using ps2000_stop()

3.5.4Using ETS mode

This is the general procedure for reading and displaying data in ETS mode:

1.Open the unit using ps2000_open_unit()

2.Select channel range and AC/DC switch using ps2000_set_channel()

3.Using ps2000_set_trigger(), set the trigger if required

4.Set ETS mode using ps2000_set_ets()

5.Start the unit running using ps2000_run_block()

6.Wait until the unit says it is ready using ps2000_ready()

7.Transfer the block of data from the unit using ps2000_get_times_and_values()

8.Display the data

9.Repeat steps 5 to 8 as necessary

10.Stop the unit using ps2000_stop()

PS2100044-1.0

Copyright 2006 Pico Technology Limited. All rights reserved.

Image 26
Contents PicoScope 2104 Table of Contents Overview Safety symbolsIntroduction IntroductionSafety warning FCC noticeCE notice Licence conditionsCompany details WarrantyTrademarks AddressProduct information Minimum system requirementsInput connector Installation instructionsChecking the installation Connectors and controlsSpecifications Driver Driver error codesTechnical reference 2 ps2000flashled Functions1 ps2000closeunit 3 ps2000gettimebase 4 ps2000gettimesandvalues 5 ps2000getunitinfo Information returned Example6 ps2000getvalues 7 ps2000lastbuttonpress8 ps2000openunit 9 ps2000readyPs2000runblock 11 ps2000runstreaming Ps2000setchannel Code Enumeration Range13 ps2000setets Ps2000settrigger 15 ps2000stopSampling modes Advanced featuresMore on block mode ETS Equivalent Time Sampling More on streaming modeTriggering Voltage rangesScaling 7 AC/DC operationOversampling Reading VoltageCombining oscilloscopes Using streaming mode Using different modesUsing block mode Using ETS modeGUI example Programming1 C Console exampleExcel Visual BasicDelphi Agilent VEETroubleshooting Software error codesGlossary Glossary PicoScope software Real-time continuous modeStreaming mode TimebaseIndex ETSIndex USBInterworld Electronics & Computers Inc