Information

PicoLog 1000 Series Programmer's Guide 9
Copyright © 2009 Pico Technology Ltd. All rights reserved. pl1000pg.en
3.3.3
pl1000GetSingle
PICO_STATUS pl1000GetSingle(
short handle,
PL1000_INPUTS channel,
unsigned short * value
)
This function returns a single sample value from the specified input channel.
Arguments:
handle: handle returned from pl1000OpenUnit or
pl1000OpenUnitProgress
channel: which channel to sample, from PL1000_CHANNEL_1 to
PL1000_CHANNEL_12 (for the PicoLog 1012) or
PL1000_CHANNEL_16 (for the PicoLog 1216)
value: a location where the function will write the sample value
Returns:
PICO_OK
PICO_INVALID_HANDLE
PICO_NO_SAMPLES_AVAILABLE
PICO_DEVICE_SAMPLING
PICO_NULL_PARAMETER
PICO_INVALID_PARAMETER
PICO_DATA_NOT_AVAILABLE
PICO_INVALID_CALL
PICO_NOT_RESPONDING
PICO_MEMORY
13
15
6
23
23
23
23
23
23
23
23
23
23