Setting Channel
③ Analog Input [ai_init.vi]

 

Select for analog input

 


Layout of IN/OUT terminal

 


IN terminal

DeviceName

Initial value: "AIO000"

[Essential]
Specify the device name (Devicename) to use

Devicename is set and confirmed by device manager

 

AiRange

[-1] Can be set

Initial value: -1(Not change)

Specify the analog input range

Range

Value

 

Range

Value

 

Range

Value

 

Range

Value

±10V

0

 

±0.25V

8

 

0 to 10V

50

 

0 to 0.1V

58

±5V

1

 

±0.125V

9

 

0 to 5V

51

 

0 to 0.05V

59

±2.5V

2

 

±0.1V

10

 

0 to 4.095V

52

 

0 to 0.025V

60

±1.25V

3

 

±0.05V

11

 

0 to 2.5V

53

 

0 to 0.0125V

61

±1V

4

 

±0.025V

12

 

0 to 1.25V

54

 

0 to 0.01V

62

±0.625V

5

 

±0.125V

13

 

0 to 1V

55

 

0 to 20mA

100

±0.5V

6

 

±0.01V

14

 

0 to 0.5V

56

 

4 to 20mA

101

±0.3125V

7

       

0 to 0.25V

57

 

1 to 5V

150

*About the available range,please refer to the manual of the using board
*In the initial state and if terminal is not connected, the initial setting value depends on the device
  Please refer to [Device-specific Setting List]

 

AiChannelNum

[-1] Can be set

Initial value: 1

In the case of analog input with buffer, specify the number of channels for sampling
The channels to be used are[Ch0 to Ch(AiChannelNum-1)]

 e.g.) When AiChannelNum is 3, the 3 channels (Ch0, Ch1, Ch2) are used in order

*In the case of analog input without buffer, this setting is ignored, so no need to set this terminal
*Some devices may not use [Ch0, Ch1, Ch2, ...], any channel can be used

Please refer to the advanced function [AioSetAiChannelSequence_i.vi]

 

AiInputMethod

[-1] Can be set

Initial value: -1(Not change)

Specify the connection type of analog input (Single-end/Differential)

0: Single-end input
1: Differential input

*About the available connection type, please refer to the manual of the using board
*In the initial state and if terminal is not connected, for the device which supports differential input only, the initial setting value is 1 (Differential input),

  For the other devices, the initial setting value is 0 (Single-end input)

 

Operate with initial value

There is an initial value for each input terminal setting.

For example, since the initial value of [AiChannelNum] that specifies the number of channels of analog continuous input is [1], there is no particular need to set [AiChannelNum] when sampling 1 channel.