Technical reference
35
3.3.4.2usb_tc08_legacy_set_channel
short usb_tc08_legacy_set_channel
(
short handle, short channel, char tc_type, short filter_factor, short offset, short slope
)
Call this routine once for each channel that you would like to take readings from. You
can do this any time after calling usb_tc08_open_unit.
Arguments | handle | Specifies the USB |
| channel | Specifies which channel you want to set the details |
|
| for: This should be between 0 and 8. |
| 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. |
| filter_factor | Specifies the size of the median filter. Each time the |
|
| driver takes a reading from this channel, it updates |
|
| the filtered value by adding a reading to a median |
|
| filter. The filter factor can be set to any value |
|
| between 0 - 255 (0 or 1 turns filtering off). |
| filter_factor | These parameters are provided for backward |
|
| compatibility with the serial |
|
| when used with the USB |
|
|
|
Returns | 0 | Use usb_tc08_get_last_error. |
| 1 | Legacy set channel successful. |
Note: Do not call this function unless you are operating the USB
mode, having called usb_tc08_legacy_run.