Pico Communications PicoScope 2105, PicoScope 2104 manual Ps2000setchannel, Code Enumeration Range

Page 19

 

 

Technical reference

 

 

 

 

ps2000_set_channel

 

 

 

3.3.12

 

 

short ps2000_set_channel ( short

handle,

 

short

channel,

 

short

enabled,

 

short

dc,

 

short

range )

17

Specifies whether a channel is to be enabled, the position of the AC/DC switch and the input range.

Arguments

handle, the handle to the required device.

channel, an enumerated type, must be PS2000_CHANNEL_A or 0.

enabled, specifies whether the channel is active: TRUE = active,

FALSE = inactive.

dc, specifies the position of the AC/DC switch: TRUE = DC,

FALSE = AC.

range, a code between 3 and 10. See the table below.

Returns

0 if unsuccessful, or if one or more of the arguments are out of range.

1 if successful.

Code

Enumeration

Range

3

PS2000_100MV

±100 mV

4

PS2000_200MV

±200 mV

5

PS2000_500MV

±500 mV

6

PS2000_1V

±1 V

7

PS2000_2V

±2 V

8

PS2000_5V

±5 V

9

PS2000_10V

±10 V

10

PS2000_20V

±20 V

Copyright 2006 Pico Technology Limited. All rights reserved.

PS2100044-1.0

Image 19
Contents PicoScope 2104 Table of Contents Introduction Safety symbolsIntroduction OverviewFCC notice Safety warningLicence conditions CE noticeAddress WarrantyTrademarks Company detailsMinimum system requirements Product informationConnectors and controls Installation instructionsChecking the installation Input connectorSpecifications Technical reference Driver error codesDriver 1 ps2000closeunit Functions2 ps2000flashled 3 ps2000gettimebase 4 ps2000gettimesandvalues Information returned Example 5 ps2000getunitinfo7 ps2000lastbuttonpress 6 ps2000getvalues9 ps2000ready 8 ps2000openunitPs2000runblock 11 ps2000runstreaming Code Enumeration Range Ps2000setchannel13 ps2000setets 15 ps2000stop Ps2000settriggerMore on block mode Advanced featuresSampling modes Voltage ranges More on streaming modeTriggering ETS Equivalent Time SamplingReading Voltage 7 AC/DC operationOversampling ScalingCombining oscilloscopes Using ETS mode Using different modesUsing block mode Using streaming modeConsole example Programming1 C GUI exampleAgilent VEE Visual BasicDelphi ExcelSoftware error codes TroubleshootingGlossary Timebase Real-time continuous modeStreaming mode Glossary PicoScope softwareETS IndexUSB IndexInterworld Electronics & Computers Inc