Installation guide

PicoScope 4000 Series (A API) Programmer's Guide 59
Copyright © 2008-2014 Pico Technology Ltd. All rights reserved. ps4000apg.en r1
4.38
ps4000aSetChannel
PICO_STATUS ps4000aSetChannel
(
int16_t handle,
PS4000A_CHANNEL channel,
int16_t enabled,
PS4000A_COUPLING type,
PS4000A_RANGE range,
float analogOffset
)
This function sets up the characteristics of the specified input channel.
Applicability
All modes
Arguments
handle, a unique identifier for the device.
channel, the channel to be configured. The allowable values are:
PS4000A_CHANNEL_A ... PS4000A_CHANNEL_H
enabled, specifies if the channel is active (TRUE) or inactive
(FALSE).
type, specifies the coupling mode: DC (TRUE) or AC (FALSE).
range, specifies the measuring range. Measuring ranges 0 to 13 are
shown in the table below.
analogOffset, a voltage, in volts, to be added to the input signal
before it reaches the input amplifier and digitizer. See the device
data sheet for the allowable range.
Returns
PICO_OK
PICO_USER_CALLBACK
PICO_INVALID_HANDLE
PICO_INVALID_CHANNEL
PICO_INVALID_VOLTAGE_RANGE
range
Voltage range
0
PS4000A_10MV
±10 mV
1
PS4000A_20MV
±20 mV
2
PS4000A_50MV
±50 mV
3
PS4000A_100MV
±100 mV
4
PS4000A_200MV
±200 mV
5
PS4000A_500MV
±500 mV
6
PS4000A_1V
±1 V
7
PS4000A_2V
±2 V
8
PS4000A_5V
±5 V
9
PS4000A_10V
±10 V
10
PS4000A_20V
±20 V
11
PS4000A_50V
±50 V
12
PS4000A_100V
±100 V
13
PS4000A_200V
±200 V