beautypg.com

New usb mode only, Usb_tc08_set_channel – Omega Speaker Systems 8 Channel Thermocouple USB Data Acquisition Module TC-08 User Manual

Page 33

background image

Technical reference

29

3.3.3

New USB mode only

3.3.3.1

usb_tc08_set_channel

short usb_tc08_set_channel
(

short handle,
short channel,
char tc_type

)

Call this routine once for each channel that you want to use. You can do this any time
after calling

usb_tc08_open_unit

. By default, all channels are disabled.

Arguments

handle

Specifies the USB TC-08 unit.

channel

Specifies which channel you want to set the details for: this
should be between 0 - 8 (0 denotes the cold junction.)

tc_type

Specifies what type of thermocouple is connected to this
channel. Set to one of the following characters: 'B', 'E', 'J',
'K', 'N', 'R', 'S', 'T.' Use a space in quotes to disable the
channel. Voltage readings can be obtained by passing 'X' as
the character.

Returns

0

Use

usb_tc08_get_last_error

.

1

Routine was successful.

Note: The CJC is always enabled automatically if a thermocouple is being used. When
no channels are active as thermocouples, the CJC can be optionally enabled or
disabled.