DAQmxPerformBridgeShuntCal
int32 DAQmxPerformBridgeShuntCal (TaskHandle taskHandle, const char channel[], float64 shuntResistorValue, int32 shuntResistorLocation, float64 bridgeResistance, bool32 skipUnsupportedChannels);
Purpose
Performs shunt calibration for the specified channels using a bridge sensor.
Parameters
Input
|
Name |
Type |
Description |
taskHandle
|
TaskHandle |
The task used in this function. |
channel
|
const char [] |
A subset of virtual channels in the task that you want to calibrate. Use this parameter if you do not want to calibrate all the channels in the task or if some channels in the task measure non-bridge-based sensors. If the input is empty, the function will attempt to perform shunt calibration on all the channels in the task. |
shuntResistorValue
|
float64 |
The resistance, in ohms, of the shunt resistor. |
shuntResistorLocation
|
int32 |
The location of the shunt resistor. Refer to the NI-DAQmx Help for more information on bridge configurations.
Value |
|
Description |
DAQmx_Val_R1 (12465) |
|
R1 |
DAQmx_Val_R2 (12466) |
|
R2 |
DAQmx_Val_R3 (12467) |
|
R3 |
DAQmx_Val_R4 (14813) |
|
R4 |
|
bridgeResistance
|
float64 |
The resistance, in ohms, of the bridge sensor. |
skipUnsupportedChannels
|
bool32 |
Specifies whether or not to skip channels that do not support shunt calibration. If skipUnsupportedChannels is TRUE, shunt calibration will be performed only on supported channels. If FALSE, shunt calibration will be performed on channels specified by channelNames. The default is FALSE. |
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. |