User Manual

USB PT-104 Data Logger Programmer's Guide 11
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved. usbpt104pg.en
2.10
UsbPt104SetChannel
PICO_STATUS UsbPt104SetChannel (
short handle,
USBPT104_CHANNELS channel,
USBPT104_DATA_TYPES type,
short noOfWires
)
This routine configures a single channel of the specified PT-104. It can be called any
time after calling UsbPt104OpenUnit.
The fewer channels selected, the more frequently they will be updated. Measurement
takes about 1 second per active channel.
If a call to UsbPt104SetChannel has a type of single-ended, then the specified
channel's 'sister' channel is also enabled. For example, enabling 3 also enables 7.
Arguments:
handle, identifies the device to be configured
channel, which channel you want to set the details for. It should
be between 1 and 4 if using single-ended inputs in voltage mode.
type, the type of reading you require. Choose from the table
below.
noOfWires - how many wires the PT100 or PT1000 sensor has (2, 3
or 4)
Returns:
defined in picoStatus.h
USBPT104_DATA_TYPES
Data type
USBPT104_OFF
0
disable channel
USBPT104_PT100
1
PT100
USBPT104_PT1000
2
PT1000
USBPT104_RESISTANCE_TO_375R
3
resistance 0 to 500 Ω
USBPT104_RESISTANCE_TO_10K
4
resistance 0 to 10 kΩ
USBPT104_DIFFERENTIAL_TO_115MV
5
differential voltage 0 to 100 mV
USBPT104_DIFFERENTIAL_TO_2500MV
6
differential voltage 0 to 2.5 V
USBPT104_SINGLE_ENDED_TO_115MV
7
single-ended voltage 0 to 100 mV
USBPT104_SINGLE_ENDED_TO_2500MV
8
single-ended voltage 0 to 2.5 V