Pico Communications PicoScope 2104 Network Card User Manual


 
PicoScope 2104 & 2105 PC Oscilloscope User Guide
16
Copyright 2006 Pico Technology Limited. All rights reserved.PS2100044-1.0
3.3.11
ps2000_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.