Omega Speaker Systems TC-08 manual Tctype, Filterfactor

Page 39

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 TC-08 unit.

 

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 TC-08 and have no effect

 

 

when used with the USB TC-08.

 

 

 

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 TC-08 in legacy

mode, having called usb_tc08_legacy_run.

Image 39
Contents User’s Guide Servicing North America Contents Page Overview Installing the driver Connecting the USB TC-08Refresh TC-08 Users GuideTC-08 Channels window, double-click on Channel 1 unused Mains voltages Safety warningSafety grounding Maximum input rangeSpecifications How a thermocouple works Introduction Modes of operationIntroduction Streaming mode ================================================== ExampleGet Single mode Usbtc08setmains handle, 0 // use 50Hz mains noise rejection Legacy mode Now do something with the cold junction temperature Driver routines Routine Description New USB and serial modeNew USB mode only Legacy mode onlyArguments New USB mode and legacy modeShort usbtc08openunit void NoneReturns Positive shortStore the handle in an array handlearrayi = newhandle Arguments None Returns Short usbtc08openunitasync voidHandle any error conditions if result == Progress HandleArguments handle Short tc08closeunit Short handleShort usbtc08stop Short handle Sixtyhertz Short usbtc08setmains Short handle, short sixtyhertzLong usbtc08getminimumintervalms Short handle MinimumInterval Info Short usbtc08getunitinfo Shorthandle, USBTC08INFO * infoShort usbgetformattedinfo Handle Char Unitinfo StringlengthUSBTC08MAXINFOCHARS characters long User/Developer error codes Error Further information Code Short usbtc08getlasterror Short handleError Reserved error codesCode New USB mode only ChannelTctype Long usbtc08run Short handle, long interval Temp OverflowflagsUnits Overflow Long usbtc08gettemp Short Handle Float * tempbuffer Tempbuffer TimesmsbufferShort Channel Units Fillmissing Long usbtc08gettempdeskew Short Handle Float * temp TimesShort usbtc08legacyrun Short handle Legacy mode onlyFilterfactor Filtered Short usbtc08legacygetcoldjunction Long * temp, short handle Driver version Number Short usbtc08legacygetdriverversion VoidVersion Short usbtc08legacygetversion Short * version, short handleCycle Short usbtc08legacygetcycle Long * cycle, short handleProgramming C++Delphi Agilent VEE ExcelLabVIEW Visual BasicKey TroubleshootingCold junction compensation. See CJC GlossaryTechnical reference Page Index TC-08 Users Guide WARRANTY/DISCLAIMER Shop online at omega.com