User Manual
Programming with the PicoScope 4000 Series60
Copyright © 2008-2011 Pico Technology Ltd. All rights reserved.ps4000pg.en
4.10.38
ps4000SetChannel
PICO_STATUS ps4000SetChannel
(
short handle,
PS4000_CHANNEL channel,
short enabled,
short dc,
PS4000_RANGE range
)
This function specifies whether an input channel is to be enabled, the AC/DC coupling
mode and the voltage range.
Applicability
All modes
Arguments
handle, the handle of the required device
channel, an enumerated type. The values are: -
PS4000_CHANNEL_A
PS4000_CHANNEL_B
PS4000_CHANNEL_C (4-channel scopes only)
PS4000_CHANNEL_D (4-channel scopes only)
enabled, specifies if the channel is active. The values are: -
TRUE = active
FALSE = inactive
dc, specifies the AC/DC coupling mode. The values are: -
TRUE = DC
FALSE = AC
range, specifies the measuring range. Measuring ranges 0 to 12,
for standard scopes, are shown in the table below. Additional ranges
for special-purpose scopes are listed under PS4000_RANGE.
Returns
PICO_OK
PICO_USER_CALLBACK
PICO_INVALID_HANDLE
PICO_INVALID_CHANNEL
PICO_INVALID_VOLTAGE_RANGE
range
Voltage range
0
PS4000_10MV
±10 mV
1
PS4000_20MV
±20 mV
2
PS4000_50MV
±50 mV
3
PS4000_100MV
±100 mV
4
PS4000_200MV
±200 mV
5
PS4000_500MV
±500 mV
6
PS4000_1V
±1 V
7
PS4000_2V
±2 V
8
PS4000_5V
±5 V
9
PS4000_10V
±10 V
10
PS4000_20V
±20 V
11
PS4000_50V
±50 V
12
PS4000_100V
±100 V