Home
NI DAQmx Base C API reference Prev Page Prev Page
NI-DAQmx Base 3.x C Function Reference Help
Conventions
Related Documentation
Key Concepts
Clocks
Terminal Names
Task Configuration/Control
DAQmxBaseClearTask
DAQmxBaseCreateTask
DAQmxBaseIsTaskDone
DAQmxBaseLoadTask
DAQmxBaseResetDevice
DAQmxBaseStartTask
DAQmxBaseStopTask
Channel Configuration/Creation
Create Analog Input Channels
DAQmxBaseCreateAIThrmcplChan
DAQmxBaseCreateAIVoltageChan
Create Analog Output Channel
DAQmxBaseCreateAOVoltageChan
Create Digital Input Channels
DAQmxBaseCreateDIChan
Create Digital Output Channels
DAQmxBaseCreateDOChan
Create Counter Input Channels
DAQmxBaseCreateCIPeriodChan
DAQmxBaseCreateCICountEdgesChan
DAQmxBaseCreateCIPulseWidthChan
Position
DAQmxBaseCreateCILinEncoderChan
DAQmxBaseCreateCIAngEncoderChan
Create Counter Output Channels
DAQmxBaseCreateCOPulseChanFreq
Timing
DAQmxBaseCfgSampClkTiming
DAQmxBaseCfgImplicitTiming
Triggering
Start Trigger
DAQmxBaseDisableStartTrig
DAQmxBaseCfgDigEdgeStartTrig
DAQmxBaseCfgAnlgEdgeStartTrig
Reference Trigger
DAQmxBaseCfgAnlgEdgeRefTrig
DAQmxBaseCfgDigEdgeRefTrig
DAQmxBaseDisableRefTrig
Read Functions
DAQmxBaseReadAnalogF64
DAQmxBaseReadBinaryI16
DAQmxBaseReadCounterF64
DAQmxBaseReadCounterScalarF64
DAQmxBaseReadCounterScalarU32
DAQmxBaseReadCounterU32
DAQmxBaseReadDigitalScalarU32
DAQmxBaseReadDigitalU32
DAQmxBaseReadDigitalU8
Write Functions
DAQmxBaseWriteAnalogF64
DAQmxBaseWriteDigitalU8
DAQmxBaseWriteDigitalU32
DAQmxBaseWriteDigitalScalarU32
Export HW Signals
DAQmxBaseExportSignal
Internal Buffer Configuration
DAQmxBaseCfgInputBuffer
Error Handling
DAQmxBaseGetExtendedErrorInfo
Glossary
Important Information
Warranty
Copyright
Trademarks
Patents
WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS
Environmental Management
Technical Support and Professional Services

DAQmxBaseCreateAIThrmcplChan

int32 DAQmxBaseCreateAIThrmcplChan (TaskHandle taskHandle, const char physicalChannel[ ], const char nameToAssignToChannel[ ], float64 minVal, float64 maxVal, int32 units, int32 thermocoupleType, int32 cjcSource, float64 cjcVal, const char cjcChannel[ ]);

Purpose

This function is only valid for a NI USB-9211 device. Creates channel(s) that use a thermocouple to measure temperature and adds the channel(s) to the task you specify with taskHandle.

Parameters

Input
Name Type Description
taskHandle TaskHandle The task to which to add the channels that this function creates.
physicalChannel const char [ ] The names of the physical channels to use to create virtual channels. You can specify a list or range of physical channels such as the following: Dev1/ai0:3 or Dev1/ai0,Dev1/ai2
nameToAssignToChannel const char [ ] Pass NULL for this parameter. NI-DAQmx Base currently ignores this parameter.
minVal float64 The minimum value, in volts, that you expect to measure.
maxVal float64 The maximum value, in volts, that you expect to measure.
units int32 The units to use to return the measurement.
Name Description
DAQmx_Val_DegC Degrees Celsius
DAQmx_Val_DegF Degrees Fahrenheit
DAQmx_Val_Kelvins Kelvins
DAQmx_Val_DegR Degrees Rankin
thermocoupleType int32 The type of thermocouple connected to the channel.
Value Description
DAQmx_Val_J_Type_TC J-type thermocouple.
DAQmx_Val_K_Type_TC K-type thermocouple.
DAQmx_Val_N_Type_TC N-type thermocouple.
DAQmx_Val_R_Type_TC R-type thermocouple.
DAQmx_Val_S_Type_TC S-type thermocouple.
DAQmx_Val_T_Type_TC T-type thermocouple.
DAQmx_Val_B_Type_TC B-type thermocouple.
DAQmx_Val_E_Type_TC E-type thermocouple.
cjcSource int32 The source of cold junction compensation.
Value Description
DAQmx_Val_BuiltIn Use a cold-junction compensation channel built into the terminal block.
DAQmx_Val_ConstVal You must specify the cold-junction temperature.
DAQmx_Val_Chan Use a channel for cold-junction compensation.
cjcVal float64 The temperature of the cold junction of the thermocouple if you set cjcSource to DAQmx_Val_ConstVal.
cjcChannel const char [ ] The channel that acquires the temperature of the thermocouple cold-junction if you set cjcSource to DAQmx_Val_Chan.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)