API Functions
46
Copyright © 2006–2022 Pico Technology Ltd. All rights reserved.
ps2000pg.en-12
PicoScope 2000 Series Programmer's Guide
5.24
ps2000_set_channel
int16_t ps2000_set_channel
(
int16_t handle,
int16_t channel,
int16_t enabled,
int16_t dc,
int16_t range
)
Specifies if a channel is to be enabled, the
Note
: The channels are not configured until capturing starts.
Applicability
All modes
Arguments
handle
: the handle of the required oscilloscope
channel
: an enumerated type specifying the channel. Use
PS2000_CHANNEL_A (0)
or
PS2000_CHANNEL_B (1)
.
enabled
: specifies if the channel is active:
TRUE
= active
FALSE
= inactive
dc
mode:
TRUE
:
DC coupling
FALSE
:
AC coupling
range
: a code between 1 and 10. See the table below, but note that each
oscilloscope variant supports only a subset of these ranges.
Returns
0: if unsuccessful, or if one or more of the arguments are out of range
non-zero: if successful
Code
Enumeration
Range
1
PS2000_20MV
±20 mV
2
PS2000_50MV
±50 mV
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
Содержание PicoScope 2000 Series
Страница 1: ...Programmer s Guide ps2000pg en 12 PC Oscilloscopes PicoScope 2000 Series ...
Страница 2: ......
Страница 67: ......