Pico Communications PicoScope 2104, PicoScope 2105 manual 8 ps2000openunit, 9 ps2000ready

Page 16

14

PicoScope 2104 & 2105 PC Oscilloscope User Guide

3.3.8ps2000_open_unit

short ps2000_open_unit ( void )

This function opens a PicoScope 2000 Series PC Oscilloscope. The API driver can support up to four units.

Arguments

None

 

 

Returns

-1if the unit fails to open,

 

0 if no unit found,

 

>0 (handle) if the unit opened

 

 

3.3.9ps2000_ready

short ps2000_ready ( short handle )

This function checks to see if the oscilloscope has finished the last data collection operation. It does nothing if the unit is in streaming mode.

Arguments

handle, the handle to the required device.

 

 

Returns

1 (meaning 'ready') is returned when the unit has collected a complete

 

block of data or the auto trigger timeout has been reached.

 

If an invalid handle is passed, or the unit is in streaming mode, it

 

returns 0 ( meaning 'not ready').

 

-1(meaning 'device not attached') is returned if the endpoint transfer

 

fails, indicating that the unit may well have been unplugged.

 

 

PS2100044-1.0

Copyright 2006 Pico Technology Limited. All rights reserved.

Image 16
Contents PicoScope 2104 Table of Contents Safety symbols IntroductionOverview IntroductionSafety warning FCC noticeCE notice Licence conditionsWarranty TrademarksCompany details AddressProduct information Minimum system requirementsInstallation instructions Checking the installationInput connector Connectors and controlsSpecifications Technical reference Driver error codesDriver 1 ps2000closeunit Functions2 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 ps2000stopMore on block mode Advanced featuresSampling modes More on streaming mode TriggeringETS Equivalent Time Sampling Voltage ranges7 AC/DC operation OversamplingScaling Reading VoltageCombining oscilloscopes Using different modes Using block modeUsing streaming mode Using ETS modeProgramming 1 CGUI example Console exampleVisual Basic DelphiExcel Agilent VEETroubleshooting Software error codesGlossary Real-time continuous mode Streaming modeGlossary PicoScope software TimebaseIndex ETSIndex USBInterworld Electronics & Computers Inc