Pico Communications PicoScope 2105 사용자 설명서

다운로드
페이지 34
Technical reference
17
Copyright 2006 Pico Technology Limited. All rights reserved.
PS2100044-1.0
3.3.12 ps2000_set_channel
short ps2000_set_channel (
short
handle,
short
channel,
short
enabled,
short
dc, 
short
range )
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