Pico Communications PicoScope 2104, PicoScope 2105 manual 11 ps2000runstreaming

Page 18

16

PicoScope 2104 & 2105 PC Oscilloscope User Guide

3.3.11ps2000_run_streaming

short ps2000_run_streaming ( short

handle,

short time_interval_ms,

long max_samples,

short

windowed )

This function tells the unit to start collecting data in streaming mode. If the function is called when a trigger has been enabled, the trigger settings will be ignored.

Arguments handle, the handle to the required device.

time_interval_ms, the time interval, in milliseconds, between samples. This can be no shorter than 1 ms.

max_samples, the maximum number of samples that the driver is to store. This can be no greater than 60 000. It is the caller's responsibility to retrieve data before the oldest values are overwritten.

windowed. If this is 0, only the values taken since the last call to get values are returned. If it is 1, the number of values requested by ps2000_get_values() are returned, even if they have already been read by ps2000_get_values(). See streaming mode for details.

Returns

1

if streaming has been enabled correctly,

 

0

if a problem occurred or a value was out of range.

PS2100044-1.0

Copyright 2006 Pico Technology Limited. All rights reserved.

Image 18
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 error codes Technical referenceDriver Functions 1 ps2000closeunit2 ps2000flashled 3 ps2000gettimebase 4 ps2000gettimesandvalues 5 ps2000getunitinfo Information returned Example6 ps2000getvalues 7 ps2000lastbuttonpress8 ps2000openunit 9 ps2000readyPs2000runblock 11 ps2000runstreaming Ps2000setchannel Code Enumeration Range13 ps2000setets Ps2000settrigger 15 ps2000stopAdvanced features More on block modeSampling modes 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