BoardConfig.SetAIChanType()

Sets the analog input mode for a specified channel.

Member of the cBoardConfig class. Accessible from the MccBoard.BoardConfig property.

Function Prototype

VB .NET

Public Function SetAIChanType(ByRef chan As Integer, ByRef chanType As MccDaq.AIChanType) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo SetAIChanType(AIChanType chanType, int chan)

Parameters

chan

The channel number.

chanType

Specifies the input mode. Set it to one of the constants listed in the chanType parameter values section below.

Returns

chanType parameter values

All of the chanType settings are MccDaq.AIChanType enumerated constants. To set a variable to one of these constants, you must refer to the MccDaq object and the AIChanType enumeration (variable = MccDaq.AIChanType.Current, variable = MccDaq.AIChanType.Resistance_1k2w, and so on.)

Input ModeDescription
CurrentCurrent mode, ±25 mA
Full_Bridge_62Pt5mVVFull-bridge mode, ±62.5 mV/V
Full_Bridge_7Pt8mVVFull-bridge mode, ±7.8 mV/V
Half_BridgeHalf-bridge mode, 500 mV/V
Quart_Bridge_120OhmQuarter-bridge mode, 120 Ω
Quart_Bridge_350OhmQuarter-bridge mode, 350 Ω
Resistance_10k2w2-wire Resistance mode, 10 kΩ
Resistance_10k4w4-wire Resistance mode, 10 kΩ
Resistance_1k2w2-wire Resistance mode, 1 kΩ
Resistance_1k4w4-wire Resistance mode, 1 kΩ
RTD_1000Ohm_3w3-wire RTD mode, 1000 Ω
RTD_1000Ohm_4w4-wire RTD mode, 1000 Ω
RTD_100Ohm_3w3-wire RTD mode, 100 Ω
RTD_100Ohm_4w4-wire RTD mode, 100 Ω
ThermocoupleThermocouple mode, ±125 mV
VoltageVoltage mode, ±60 V, ±15 V, ±4 V, ±1 V, ±1.25 mV