![PICO picoscope 3204 User Manual Download Page 15](http://html1.mh-extra.com/html/pico/picoscope-3204/picoscope-3204_user-manual_1555065015.webp)
Technical reference
14
Copyright 2005 Pico Technology Limited. All rights reserved.
PS3000044 1.4
3.3.5
ps3000_set_channel
short ps3000_set_channel (
short
handle,
short
channel,
short
enabled,
short
dc,
short
range )
Specifies if a 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, use PS3000_CHANNEL_A (0),
PS3000_CHANNEL_B (1), PS3000_CHANNEL_C (2) or
PS3000_CHANNEL_D (3). Channels C and D are not available on all
models.
enabled
, specify if 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 0 and 12. 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
0
PS3000_10MV
±10 mV
Not available on all variants.
1
PS3000_20MV
±20 mV
Not available on all variants..
2
PS3000_50MV
±50 mV
Not available on all variants.
3
PS3000_100MV
±100 mV
4
PS3000_200MV
±200 mV
5
PS3000_500MV
±500 mV
6
PS3000_1V
±1 V
7
PS3000_2V
±2 V
8
PS3000_5V
±5 V
9
PS3000_10V
±10 V
10
PS3000_20V
±20 V
11
PS3000_50V
±50 V
Not available on all variants.