Skip to content

NI DAQMX Channel Attributes Counter Input

Greg Stoll edited this page Sep 10, 2021 · 2 revisions

Channel Attributes - Counter Input

See how to get and set attributes.

DAQmx_CI_Max

Data Type: float64
Description: Specifies the maximum value you expect to measure. This value is in the units you specify with a units property. When you query this property, it returns the coerced maximum value that the hardware can measure with the current settings.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Min

Data Type: float64
Description: Specifies the minimum value you expect to measure. This value is in the units you specify with a units property. When you query this property, it returns the coerced minimum value that the hardware can measure with the current settings.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CustomScaleName

Data Type: char*
Description: Specifies the name of a custom scale for the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_MeasType

Data Type: int32
Description: Indicates the measurement to take with the channel.
Restrictions: Not Settable

Valid values

DAQmx_Val_CountEdges 10125 Count edges of a digital signal.
DAQmx_Val_Freq 10179 Measure the frequency of a digital signal.
DAQmx_Val_Period 10256 Measure the period of a digital signal.
DAQmx_Val_PulseWidth 10359 Measure the width of a pulse of a digital signal.
DAQmx_Val_SemiPeriod 10289 Measure the time between state transitions of a digital signal.
DAQmx_Val_PulseFrequency 15864 Pulse measurement, returning the result as frequency and duty cycle.
DAQmx_Val_PulseTime 15865 Pulse measurement, returning the result as high time and low time.
DAQmx_Val_PulseTicks 15866 Pulse measurement, returning the result as high ticks and low ticks.
DAQmx_Val_DutyCycle 16070 Measure the duty cycle of a digital signal.
DAQmx_Val_Position_AngEncoder 10360 Angular position measurement using an angular encoder.
DAQmx_Val_Position_LinEncoder 10361 Linear position measurement using a linear encoder.
DAQmx_Val_Velocity_AngEncoder 16078 Angular velocity measurement using an angular encoder.
DAQmx_Val_Velocity_LinEncoder 16079 Linear velocity measurement using a linear encoder.
DAQmx_Val_TwoEdgeSep 10267 Measure time between edges of two digital signals.
DAQmx_Val_GPS_Timestamp 10362 Timestamp measurement, synchronizing the counter to a GPS receiver.

You can get this attribute using:   DAQmxGetChanAttribute

Counter Input Frequency

DAQmx_CI_Freq_Units

Data Type: int32
Description: Specifies the units to use to return frequency measurements.

Valid values

DAQmx_Val_Hz 10373 Hertz.
DAQmx_Val_Ticks 10304 Timebase ticks.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Frequency Input

DAQmx_CI_Freq_Term

Data Type: char*
Description: Specifies the input terminal of the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Freq_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Freq_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Freq_ThreshVoltage

Data Type: float64
Description: Specifies the voltage level at which to recognize waveform repetitions. Select a voltage level that occurs only once within the entire period of a waveform. You also can select a voltage that occurs only once while the voltage rises or falls.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Freq_Hyst

Data Type: float64
Description: Specifies a hysteresis level to apply to DAQmx_CI_Freq_ThreshVoltage. When DAQmx_CI_Freq_StartingEdge is rising, the source signal must first fall below DAQmx_CI_Freq_ThreshVoltage minus the hysteresis before a rising edge is detected at DAQmx_CI_Freq_ThreshVoltage. When DAQmx_CI_Freq_StartingEdge is falling, the source signal must first rise above DAQmx_CI_Freq_ThreshVoltage plus the hysteresis before a falling edge is detected at DAQmx_CI_Freq_ThreshVoltage.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Frequency Digital Filter

DAQmx_CI_Freq_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Freq_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Frequency Timebase

DAQmx_CI_Freq_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Freq_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Frequency Digital Synchronization

DAQmx_CI_Freq_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Freq_StartingEdge

Data Type: int32
Description: Specifies between which edges to measure the frequency of the signal.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Frequency Measurements Specifications

DAQmx_CI_Freq_MeasMeth

Data Type: int32
Description: Specifies the method to use to measure the frequency of the signal.

Valid values

DAQmx_Val_LowFreq1Ctr 10105 Use one counter that uses a constant timebase to measure the input signal.
DAQmx_Val_HighFreq2Ctr 10157 Use two counters, one of which counts pulses of the signal to measure during the specified measurement time.
DAQmx_Val_LargeRng2Ctr 10205 Use one counter to divide the frequency of the input signal to create a lower-frequency signal that the second counter can more easily measure.
DAQmx_Val_DynAvg 16065 Uses one counter with configuration options to control the amount of averaging or filtering applied to the counter measurements. Set filtering options to balance measurement accuracy and noise versus latency.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Freq_EnableAveraging

Data Type: bool32
Description: Specifies whether to enable averaging mode for Sample Clock-timed frequency measurements.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

High Frequency

DAQmx_CI_Freq_MeasTime

Data Type: float64
Description: Specifies in seconds the length of time to measure the frequency of the signal if DAQmx_CI_Freq_MeasMeth is DAQmx_Val_HighFreq2Ctr. Measurement accuracy increases with increased measurement time and with increased signal frequency. If you measure a high-frequency signal for too long, however, the count register could roll over, which results in an incorrect measurement.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Frequency Large Range

DAQmx_CI_Freq_Div

Data Type: uInt32
Description: Specifies the value by which to divide the input signal if DAQmx_CI_Freq_MeasMeth is DAQmx_Val_LargeRng2Ctr. The larger the divisor, the more accurate the measurement. However, too large a value could cause the count register to roll over, which results in an incorrect measurement.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Period

DAQmx_CI_Period_Units

Data Type: int32
Description: Specifies the unit to use to return period measurements.

Valid values

DAQmx_Val_Seconds 10364 Seconds.
DAQmx_Val_Ticks 10304 Timebase ticks.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Period Input

DAQmx_CI_Period_Term

Data Type: char*
Description: Specifies the input terminal of the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Period_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Period_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Period_ThreshVoltage

Data Type: float64
Description: Specifies the voltage level at which to recognize waveform repetitions. Select a voltage level that occurs only once within the entire period of a waveform. You also can select a voltage that occurs only once while the voltage rises or falls.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Period_Hyst

Data Type: float64
Description: Specifies a hysteresis level to apply to DAQmx_CI_Period_ThreshVoltage. When DAQmx_CI_Period_StartingEdge is rising, the source signal must first fall below DAQmx_CI_Period_ThreshVoltage minus the hysteresis before a rising edge is detected at DAQmx_CI_Period_ThreshVoltage. When DAQmx_CI_Period_StartingEdge is falling, the source signal must first rise above DAQmx_CI_Period_ThreshVoltage plus the hysteresis before a falling edge is detected at DAQmx_CI_Period_ThreshVoltage.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Period Digital Filter

DAQmx_CI_Period_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Period_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Period Timebase

DAQmx_CI_Period_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Period_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Period Digital Synchronization

DAQmx_CI_Period_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Period_StartingEdge

Data Type: int32
Description: Specifies between which edges to measure the period of the signal.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Period Measurements Specifications

DAQmx_CI_Period_MeasMeth

Data Type: int32
Description: Specifies the method to use to measure the period of the signal.

Valid values

DAQmx_Val_LowFreq1Ctr 10105 Use one counter that uses a constant timebase to measure the input signal.
DAQmx_Val_HighFreq2Ctr 10157 Use two counters, one of which counts pulses of the signal to measure during the specified measurement time.
DAQmx_Val_LargeRng2Ctr 10205 Use one counter to divide the frequency of the input signal to create a lower-frequency signal that the second counter can more easily measure.
DAQmx_Val_DynAvg 16065 Uses one counter with configuration options to control the amount of averaging or filtering applied to the counter measurements. Set filtering options to balance measurement accuracy and noise versus latency.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Period_EnableAveraging

Data Type: bool32
Description: Specifies whether to enable averaging mode for Sample Clock-timed period measurements.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Period High Frequency

DAQmx_CI_Period_MeasTime

Data Type: float64
Description: Specifies in seconds the length of time to measure the period of the signal if DAQmx_CI_Period_MeasMeth is DAQmx_Val_HighFreq2Ctr. Measurement accuracy increases with increased measurement time and with increased signal frequency. If you measure a high-frequency signal for too long, however, the count register could roll over, which results in an incorrect measurement.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Period Large Range

DAQmx_CI_Period_Div

Data Type: uInt32
Description: Specifies the value by which to divide the input signal if DAQmx_CI_Period_MeasMeth is DAQmx_Val_LargeRng2Ctr. The larger the divisor, the more accurate the measurement. However, too large a value could cause the count register to roll over, which results in an incorrect measurement.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Count Edges

Counter Count Edges Input

DAQmx_CI_CountEdges_Term

Data Type: char*
Description: Specifies the input terminal of the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_ThreshVoltage

Data Type: float64
Description: Specifies the voltage level at which to recognize waveform repetitions. Select a voltage level that occurs only once within the entire period of a waveform. You also can select a voltage that occurs only once while the voltage rises or falls.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_Hyst

Data Type: float64
Description: Specifies a hysteresis level to apply to DAQmx_CI_CountEdges_ThreshVoltage. When DAQmx_CI_CountEdges_ActiveEdge is rising, the source signal must first fall below DAQmx_CI_CountEdges_ThreshVoltage minus the hysteresis before a rising edge is detected at DAQmx_CI_CountEdges_ThreshVoltage. When DAQmx_CI_CountEdges_ActiveEdge is falling, the source signal must first rise above DAQmx_CI_CountEdges_ThreshVoltage plus the hysteresis before a falling edge is detected at DAQmx_CI_CountEdges_ThreshVoltage.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Count Edges Digital Filter

DAQmx_CI_CountEdges_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Count Edges Timebase

DAQmx_CI_CountEdges_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Count Edges Digital Synchronization

DAQmx_CI_CountEdges_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Count Direction

DAQmx_CI_CountEdges_Dir

Data Type: int32
Description: Specifies whether to increment or decrement the counter on each edge.

Valid values

DAQmx_Val_CountUp 10128 Increment counter.
DAQmx_Val_CountDown 10124 Decrement counter.
DAQmx_Val_ExtControlled 10326 The state of a digital line controls the count direction. Each counter has a default count direction terminal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Count Direction Input

DAQmx_CI_CountEdges_DirTerm

Data Type: char*
Description: Specifies the source terminal of the digital signal that controls the count direction if DAQmx_CI_CountEdges_Dir is DAQmx_Val_ExtControlled.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountDir_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountDir_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the count reset line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountDir_ThreshVoltage

Data Type: float64
Description: Specifies the voltage level applied to the Count Direction terminal. When the signal is above this threshold, the counter counts up. When the signal is below this threshold, the counter counts down.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountDir_Hyst

Data Type: float64
Description: Specifies a hysteresis level applied to the DAQmx_CI_CountEdges_CountDir_ThreshVoltage. The source signal must fall below DAQmx_CI_CountEdges_CountDir_ThreshVoltage minus the hysteresis before a change in count direction occurs.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Count Direction Digital Filter

DAQmx_CI_CountEdges_CountDir_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountDir_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Count Direction Timebase

DAQmx_CI_CountEdges_CountDir_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountDir_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Count Direction Digital Synchronization

DAQmx_CI_CountEdges_CountDir_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_InitialCnt

Data Type: uInt32
Description: Specifies the starting value from which to count.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_ActiveEdge

Data Type: int32
Description: Specifies on which edges to increment or decrement the counter.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Count Reset

DAQmx_CI_CountEdges_CountReset_Enable

Data Type: bool32
Description: Specifies whether to reset the count on the active edge specified with DAQmx_CI_CountEdges_CountReset_Term.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountReset_ResetCount

Data Type: uInt32
Description: Specifies the value to reset the count to.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Count Reset Input

DAQmx_CI_CountEdges_CountReset_Term

Data Type: char*
Description: Specifies the input terminal of the signal to reset the count.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountReset_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountReset_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the count reset line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountReset_ThreshVoltage

Data Type: float64
Description: Specifies the voltage level at which to recognize the counter reset event.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountReset_Hyst

Data Type: float64
Description: Specifies a hysteresis level applied to DAQmx_CI_CountEdges_CountReset_ThreshVoltage. When DAQmx_CI_CountEdges_CountReset_ActiveEdge is rising, the source signal must first fall below DAQmx_CI_CountEdges_CountReset_ThreshVoltage minus the hysteresis before a rising edge is detected at DAQmx_CI_CountEdges_CountReset_ThreshVoltage. When DAQmx_CI_CountEdges_CountReset_ActiveEdge is falling, the source signal must first rise above DAQmx_CI_CountEdges_CountReset_ThreshVoltage plus the hysteresis before a falling edge is detected at DAQmx_CI_CountEdges_CountReset_ThreshVoltage.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Count Reset Digital Filter

DAQmx_CI_CountEdges_CountReset_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountReset_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Count Reset Timebase

DAQmx_CI_CountEdges_CountReset_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountReset_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Count Reset Digital Synchronization

DAQmx_CI_CountEdges_CountReset_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_CountReset_ActiveEdge

Data Type: int32
Description: Specifies on which edge of the signal to reset the count.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Gate

DAQmx_CI_CountEdges_Gate_Enable

Data Type: bool32
Description: Specifies whether to enable the functionality to gate the counter input signal for a count edges measurement.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Gate Input

DAQmx_CI_CountEdges_Gate_Term

Data Type: char*
Description: Specifies the gate terminal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_Gate_TermCfg

Data Type: int32
Description: Specifies the gate terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_Gate_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the gate input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_Gate_ThreshVoltage

Data Type: float64
Description: Specifies the voltage level at which to recognize the counter gate signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_Gate_Hyst

Data Type: float64
Description: Specifies a hysteresis level applied to the DAQmx_CI_CountEdges_Gate_ThreshVoltage. When DAQmx_CI_CountEdges_GateWhen is High, the source signal must fall below DAQmx_CI_CountEdges_Gate_ThreshVoltage minus the hysteresis before the counter resumes counting. When DAQmx_CI_CountEdges_GateWhen is Low, the source signal must rise above DAQmx_CI_CountEdges_Gate_ThreshVoltage plus the hysteresis before the counter resumes counting.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Gate Digital Filter

DAQmx_CI_CountEdges_Gate_DigFltrEnable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the gate input signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_Gate_DigFltrMinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the digital filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Gate Timebase

DAQmx_CI_CountEdges_Gate_DigFltrTimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_Gate_DigFltrTimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CountEdges_GateWhen

Data Type: int32
Description: Specifies whether the counter gates input pulses while the signal is high or low.

Valid values

DAQmx_Val_High 10192 High state.
DAQmx_Val_Low 10214 Low state.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Duty Cycle

Counter Duty Cycle Input

DAQmx_CI_DutyCycle_Term

Data Type: char*
Description: Specifies the input terminal of the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_DutyCycle_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_DutyCycle_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Duty Cycle Digital Filter

DAQmx_CI_DutyCycle_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_DutyCycle_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the digital filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Duty Cycle Timebase

DAQmx_CI_DutyCycle_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_DutyCycle_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_DutyCycle_StartingEdge

Data Type: int32
Description: Specifies which edge of the input signal to begin the duty cycle measurement.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Position

Counter Position Angular Encoder

DAQmx_CI_AngEncoder_Units

Data Type: int32
Description: Specifies the units to use to return angular position measurements from the channel.

Valid values

DAQmx_Val_Degrees 10146 Degrees.
DAQmx_Val_Radians 10273 Radians.
DAQmx_Val_Ticks 10304 Ticks.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_AngEncoder_PulsesPerRev

Data Type: uInt32
Description: Specifies the number of pulses the encoder generates per revolution. This value is the number of pulses on either signal A or signal B, not the total number of pulses on both signal A and signal B.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_AngEncoder_InitialAngle

Data Type: float64
Description: Specifies the starting angle of the encoder. This value is in the units you specify with DAQmx_CI_AngEncoder_Units.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Position Linear Encoder

DAQmx_CI_LinEncoder_Units

Data Type: int32
Description: Specifies the units to use to return linear encoder measurements from the channel.

Valid values

DAQmx_Val_Meters 10219 Meters.
DAQmx_Val_Inches 10379 Inches.
DAQmx_Val_Ticks 10304 Ticks.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_LinEncoder_DistPerPulse

Data Type: float64
Description: Specifies the distance to measure for each pulse the encoder generates on signal A or signal B. This value is in the units you specify with DAQmx_CI_LinEncoder_Units.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_LinEncoder_InitialPos

Data Type: float64
Description: Specifies the position of the encoder when the measurement begins. This value is in the units you specify with DAQmx_CI_LinEncoder_Units.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_DecodingType

Data Type: int32
Description: Specifies how to count and interpret the pulses the encoder generates on signal A and signal B. DAQmx_Val_X1, DAQmx_Val_X2, and DAQmx_Val_X4 are valid for quadrature encoders only. DAQmx_Val_TwoPulseCounting is valid for two-pulse encoders only.

Valid values

DAQmx_Val_X1 10090 If signal A leads signal B, count the rising edges of signal A. If signal B leads signal A, count the falling edges of signal A.
DAQmx_Val_X2 10091 Count the rising and falling edges of signal A.
DAQmx_Val_X4 10092 Count the rising and falling edges of signal A and signal B.
DAQmx_Val_TwoPulseCounting 10313 Increment the count on rising edges of signal A. Decrement the count on rising edges of signal B.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Position A Input

DAQmx_CI_Encoder_AInputTerm

Data Type: char*
Description: Specifies the terminal to which signal A is connected.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_AInputTermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_AInputLogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input A Input Digital Filter

DAQmx_CI_Encoder_AInput_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_AInput_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input A Input Timebase

DAQmx_CI_Encoder_AInput_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_AInput_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input A Input Digital Synchronization

DAQmx_CI_Encoder_AInput_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Position B Input

DAQmx_CI_Encoder_BInputTerm

Data Type: char*
Description: Specifies the terminal to which signal B is connected.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_BInputTermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_BInputLogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input B Input Digital Filter

DAQmx_CI_Encoder_BInput_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_BInput_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input B Input Timebase

DAQmx_CI_Encoder_BInput_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_BInput_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input B Input Digital Synchronization

DAQmx_CI_Encoder_BInput_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Z Input

DAQmx_CI_Encoder_ZInputTerm

Data Type: char*
Description: Specifies the terminal to which signal Z is connected.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_ZInputTermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_ZInputLogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Z Input Digital Filter

DAQmx_CI_Encoder_ZInput_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_ZInput_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Z Input Timebase

DAQmx_CI_Encoder_ZInput_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_ZInput_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Z Input Digital Synchronization

DAQmx_CI_Encoder_ZInput_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_ZIndexEnable

Data Type: bool32
Description: Specifies whether to use Z indexing for the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_ZIndexVal

Data Type: float64
Description: Specifies the value to which to reset the measurement when signal Z is high and signal A and signal B are at the states you specify with DAQmx_CI_Encoder_ZIndexPhase. Specify this value in the units of the measurement.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Encoder_ZIndexPhase

Data Type: int32
Description: Specifies the states at which signal A and signal B must be while signal Z is high for NI-DAQmx to reset the measurement. If signal Z is never high while signal A and signal B are high, for example, you must choose a phase other than DAQmx_Val_AHighBHigh.

Valid values

DAQmx_Val_AHighBHigh 10040 Reset the measurement when signal A and signal B are high.
DAQmx_Val_AHighBLow 10041 Reset the measurement when signal A is high and signal B is low.
DAQmx_Val_ALowBHigh 10042 Reset the measurement when signal A is low and signal B high.
DAQmx_Val_ALowBLow 10043 Reset the measurement when signal A and signal B are low.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Pulse Width

DAQmx_CI_PulseWidth_Units

Data Type: int32
Description: Specifies the units to use to return pulse width measurements.

Valid values

DAQmx_Val_Seconds 10364 Seconds.
DAQmx_Val_Ticks 10304 Timebase ticks.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Pulse Width Input

DAQmx_CI_PulseWidth_Term

Data Type: char*
Description: Specifies the input terminal of the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_PulseWidth_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_PulseWidth_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Width Digital Filter

DAQmx_CI_PulseWidth_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_PulseWidth_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Width Timebase

DAQmx_CI_PulseWidth_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_PulseWidth_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Width Synchronization

DAQmx_CI_PulseWidth_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_PulseWidth_StartingEdge

Data Type: int32
Description: Specifies on which edge of the input signal to begin each pulse width measurement.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Timestamp

DAQmx_CI_Timestamp_Units

Data Type: int32
Description: Specifies the units to use to return timestamp measurements.

Valid values

DAQmx_Val_Seconds 10364 Seconds.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Timestamp_InitialSeconds

Data Type: uInt32
Description: Specifies the number of seconds that elapsed since the beginning of the current year. This value is ignored if DAQmx_CI_GPS_SyncMethod is DAQmx_Val_IRIGB.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Gps

DAQmx_CI_GPS_SyncMethod

Data Type: int32
Description: Specifies the method to use to synchronize the counter to a GPS receiver.

Valid values

DAQmx_Val_IRIGB 10070 Use the IRIG-B synchronization method. The GPS receiver sends one synchronization pulse per second, as well as information about the number of days, hours, minutes, and seconds that elapsed since the beginning of the current year.
DAQmx_Val_PPS 10080 Use the PPS synchronization method. The GPS receiver sends one synchronization pulse per second, but does not send any timing information. The timestamp measurement returns the number of seconds that elapsed since the device powered up unless you set DAQmx_CI_Timestamp_InitialSeconds.
DAQmx_Val_None 10230 Do not synchronize the counter to a GPS receiver. The timestamp measurement returns the number of seconds that elapsed since the device powered up unless you set DAQmx_CI_Timestamp_InitialSeconds.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_GPS_SyncSrc

Data Type: char*
Description: Specifies the terminal to which the GPS synchronization signal is connected.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Velocity

Counter Velocity Angular Encoder

DAQmx_CI_Velocity_AngEncoder_Units

Data Type: int32
Description: Specifies the units to use to return angular velocity counter measurements.

Valid values

DAQmx_Val_RPM 16080 Revolutions per minute.
DAQmx_Val_RadiansPerSecond 16081 Radians per second.
DAQmx_Val_DegreesPerSecond 16082 Degrees per second.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_AngEncoder_PulsesPerRev

Data Type: uInt32
Description: Specifies the number of pulses the encoder generates per revolution. This value is the number of pulses on either signal A or signal B, not the total number of pulses on both signal A and signal B.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Velocity Linear Encoder

DAQmx_CI_Velocity_LinEncoder_Units

Data Type: int32
Description: Specifies the units to use to return linear encoder velocity measurements from the channel.

Valid values

DAQmx_Val_MetersPerSecond 15959 Meters per second.
DAQmx_Val_InchesPerSecond 15960 Inches per second.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_LinEncoder_DistPerPulse

Data Type: float64
Description: Specifies the distance to measure for each pulse the encoder generates on signal A or signal B. This value is in the units you specify in CI.Velocity.LinEncoder.DistUnits.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_DecodingType

Data Type: int32
Description: Specifies how to count and interpret the pulses the encoder generates on signal A and signal B. X1, X2, and X4 are valid for quadrature encoders only. Two Pulse Counting is valid for two-pulse encoders only.

Valid values

DAQmx_Val_X1 10090 If signal A leads signal B, count the rising edges of signal A. If signal B leads signal A, count the falling edges of signal A.
DAQmx_Val_X2 10091 Count the rising and falling edges of signal A.
DAQmx_Val_X4 10092 Count the rising and falling edges of signal A and signal B.
DAQmx_Val_TwoPulseCounting 10313 Increment the count on rising edges of signal A. Decrement the count on rising edges of signal B.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Velocity A Input

DAQmx_CI_Velocity_Encoder_AInputTerm

Data Type: char*
Description: Specifies the terminal to which signal A is connected.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_AInputTermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_AInputLogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior of the input terminal.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

A Input Digital Filter

DAQmx_CI_Velocity_Encoder_AInputDigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_AInputDigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the digital filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_AInputDigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_AInputDigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Velocity B Input

DAQmx_CI_Velocity_Encoder_BInputTerm

Data Type: char*
Description: Specifies the terminal to which signal B is connected.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_BInputTermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_BInputLogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior of the input terminal.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

B Input Digital Filter

DAQmx_CI_Velocity_Encoder_BInputDigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_BInputDigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the digital filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_BInputDigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Encoder_BInputDigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Velocity Advanced

DAQmx_CI_Velocity_MeasTime

Data Type: float64
Description: Specifies in seconds the length of time to measure the velocity of the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Velocity_Div

Data Type: uInt32
Description: Specifies the value by which to divide the input signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Two Edge Separation

DAQmx_CI_TwoEdgeSep_Units

Data Type: int32
Description: Specifies the units to use to return two-edge separation measurements from the channel.

Valid values

DAQmx_Val_Seconds 10364 Seconds.
DAQmx_Val_Ticks 10304 Timebase ticks.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Two Edge Separation First

Two Edge Separation First Input

DAQmx_CI_TwoEdgeSep_FirstTerm

Data Type: char*
Description: Specifies the source terminal of the digital signal that starts each measurement.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_FirstTermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_FirstLogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the input line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Two Edge Separation First Digital Filter

DAQmx_CI_TwoEdgeSep_First_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_First_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Two Edge Separation First Timebase

DAQmx_CI_TwoEdgeSep_First_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_First_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Two Edge Separation First Synchronization

DAQmx_CI_TwoEdgeSep_First_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_FirstEdge

Data Type: int32
Description: Specifies on which edge of the first signal to start each measurement.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Two Edge Separation Second

Two Edge Separation Second Input

DAQmx_CI_TwoEdgeSep_SecondTerm

Data Type: char*
Description: Specifies the source terminal of the digital signal that stops each measurement.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_SecondTermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_SecondLogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the count reset line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Two Edge Separation Second Digital Filter

DAQmx_CI_TwoEdgeSep_Second_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_Second_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Two Edge Separation Second Timebase

DAQmx_CI_TwoEdgeSep_Second_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_Second_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Two Edge Separation Second Synchronization

DAQmx_CI_TwoEdgeSep_Second_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_TwoEdgeSep_SecondEdge

Data Type: int32
Description: Specifies on which edge of the second signal to stop each measurement.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Semi-Period

DAQmx_CI_SemiPeriod_Units

Data Type: int32
Description: Specifies the units to use to return semi-period measurements.

Valid values

DAQmx_Val_Seconds 10364 Seconds.
DAQmx_Val_Ticks 10304 Timebase ticks.
DAQmx_Val_FromCustomScale 10065 Units a custom scale specifies. If you select this value, you must specify a custom scale name.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Semi-Period Input

DAQmx_CI_SemiPeriod_Term

Data Type: char*
Description: Specifies the input terminal of the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_SemiPeriod_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_SemiPeriod_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the count reset line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Semi-Period Digital Filter

DAQmx_CI_SemiPeriod_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_SemiPeriod_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Semi-Period Timebase

DAQmx_CI_SemiPeriod_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_SemiPeriod_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Semi-Period Digital Synchronization

DAQmx_CI_SemiPeriod_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_SemiPeriod_StartingEdge

Data Type: int32
Description: Specifies on which edge of the input signal to begin semi-period measurement. Semi-period measurements alternate between high time and low time, starting on this edge.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse

Input Pulse Frequency

DAQmx_CI_Pulse_Freq_Units

Data Type: int32
Description: Specifies the units to use to return pulse specifications in terms of frequency.

Valid values

DAQmx_Val_Hz 10373 Hertz.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Frequency Input

DAQmx_CI_Pulse_Freq_Term

Data Type: char*
Description: Specifies the input terminal of the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Freq_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Freq_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the count reset line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Frequency Digital Filter

DAQmx_CI_Pulse_Freq_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply a digital filter to the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Freq_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Frequency Timebase

DAQmx_CI_Pulse_Freq_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the terminal of the signal to use as the timebase of the digital filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Freq_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Frequency Digital Synchronization

DAQmx_CI_Pulse_Freq_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Freq_Start_Edge

Data Type: int32
Description: Specifies on which edge of the input signal to begin pulse measurement.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Time

DAQmx_CI_Pulse_Time_Units

Data Type: int32
Description: Specifies the units to use to return pulse specifications in terms of high time and low time.

Valid values

DAQmx_Val_Seconds 10364 Seconds.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Time Input

DAQmx_CI_Pulse_Time_Term

Data Type: char*
Description: Specifies the input terminal of the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Time_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Time_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the count reset line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Time Digital Filter

DAQmx_CI_Pulse_Time_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply a digital filter to the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Time_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Time Timebase

DAQmx_CI_Pulse_Time_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the terminal of the signal to use as the timebase of the digital filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Time_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Time Digital Synchronization

DAQmx_CI_Pulse_Time_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Time_StartEdge

Data Type: int32
Description: Specifies on which edge of the input signal to begin pulse measurement.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Input Pulse Ticks

Counter Input Pulse Ticks Input

DAQmx_CI_Pulse_Ticks_Term

Data Type: char*
Description: Specifies the input terminal of the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Ticks_TermCfg

Data Type: int32
Description: Specifies the input terminal configuration.

Valid values

DAQmx_Val_Diff 10106 Differential.
DAQmx_Val_RSE 10083 Referenced Single-Ended.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Ticks_LogicLvlBehavior

Data Type: int32
Description: Specifies the logic level behavior on the count reset line.

Valid values

DAQmx_Val_LogicLevelPullUp 16064 High logic.
DAQmx_Val_None 10230 Supply no excitation to the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Ticks Digital Filter

DAQmx_CI_Pulse_Ticks_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply a digital filter to the signal to measure.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Ticks_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Ticks Timebase

DAQmx_CI_Pulse_Ticks_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the terminal of the signal to use as the timebase of the digital filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Ticks_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Pulse Ticks Digital Synchronization

DAQmx_CI_Pulse_Ticks_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Pulse_Ticks_StartEdge

Data Type: int32
Description: Specifies on which edge of the input signal to begin pulse measurement.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input General Properties

Counter Input Timebase

DAQmx_CI_CtrTimebaseSrc

Data Type: char*
Description: Specifies the terminal of the timebase to use for the counter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CtrTimebaseRate

Data Type: float64
Description: Specifies in Hertz the frequency of the counter timebase. Specifying the rate of a counter timebase allows you to take measurements in terms of time or frequency rather than in ticks of the timebase. If you use an external timebase and do not specify the rate, you can take measurements only in terms of ticks of the timebase.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CtrTimebaseActiveEdge

Data Type: int32
Description: Specifies whether a timebase cycle is from rising edge to rising edge or from falling edge to falling edge.

Valid values

DAQmx_Val_Rising 10280 Rising edge(s).
DAQmx_Val_Falling 10171 Falling edge(s).

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Digital Filter

DAQmx_CI_CtrTimebase_DigFltr_Enable

Data Type: bool32
Description: Specifies whether to apply the pulse width filter to the signal.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CtrTimebase_DigFltr_MinPulseWidth

Data Type: float64
Description: Specifies in seconds the minimum pulse width the filter recognizes.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Counter Timebase

DAQmx_CI_CtrTimebase_DigFltr_TimebaseSrc

Data Type: char*
Description: Specifies the input terminal of the signal to use as the timebase of the pulse width filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_CtrTimebase_DigFltr_TimebaseRate

Data Type: float64
Description: Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Counter Digital Synchronization

DAQmx_CI_CtrTimebase_DigSync_Enable

Data Type: bool32
Description: Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Configuration

DAQmx_CI_ThreshVoltage

Data Type: float64
Description: Specifies the digital threshold value in Volts for high and low input transitions. Some devices do not support this for differential channels.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Filter

DAQmx_CI_Filter_Enable

Data Type: bool32
Description: Specifies the corresponding filter enable/disable state.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Filter_Freq

Data Type: float64
Description: Specifies the corresponding filter frequency (cutoff or center) of the filter response.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Filter_Response

Data Type: int32
Description: Specifies the corresponding filter response and defines the shape of the filter response.

Valid values

DAQmx_Val_Comb 16152 Comb filter response.
DAQmx_Val_Bessel 16153 Bessel filter response.
DAQmx_Val_Brickwall 16155 Brickwall filter response.
DAQmx_Val_Butterworth 16076 Butterworth filter response.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Filter_Order

Data Type: uInt32
Description: Specifies the corresponding filter order and defines the slope of the filter response.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_FilterDelay

Data Type: float64
Description: Indicates the amount of time between when the input signal transitions and when the filtered sample is read by the host device. This value is in the units specified with DAQmx_CI_FilterDelayUnits.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetChanAttribute

DAQmx_CI_FilterDelayUnits

Data Type: int32
Description: Specifies the units of DAQmx_CI_FilterDelay.

Valid values

DAQmx_Val_Seconds 10364 Seconds.
DAQmx_Val_SampleClkPeriods 10286 Sample Clock Periods.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input More

DAQmx_CI_Count

Data Type: uInt32
Description: Indicates the current value of the count register.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetChanAttribute

DAQmx_CI_OutputState

Data Type: int32
Description: Indicates the current state of the out terminal of the counter.
Restrictions: Not Settable

Valid values

DAQmx_Val_High 10192 High state.
DAQmx_Val_Low 10214 Low state.

You can get this attribute using:   DAQmxGetChanAttribute

DAQmx_CI_TCReached

Data Type: bool32
Description: Indicates whether the counter rolled over. When you query this property, NI-DAQmx resets it to FALSE.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetChanAttribute

DAQmx_CI_CtrTimebaseMasterTimebaseDiv

Data Type: uInt32
Description: Specifies the divisor for an external counter timebase. You can divide the counter timebase in order to measure slower signals without causing the count register to roll over.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_SampClkOverrunBehavior

Data Type: int32
Description: Specifies the counter behavior when data is read but a new value was not detected during a sample clock.

Valid values

DAQmx_Val_RepeatedData 16062 Repeat the last sample.
DAQmx_Val_SentinelValue 16063 Return the sentinel value.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_SampClkOverrunSentinelVal

Data Type: int32
Description: Specifies the sentinel value returned when the No New Sample Behavior is set to Sentinel Value.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Counter Input Advanced

Counter Input Data Transfer And Memory

DAQmx_CI_DataXferMech

Data Type: int32
Description: Specifies the data transfer mode for the channel.

Valid values

DAQmx_Val_DMA 10054 Direct Memory Access. Data transfers take place independently from the application.
DAQmx_Val_Interrupts 10204 Data transfers take place independently from the application. Using interrupts increases CPU usage because the CPU must service interrupt requests. Typically, you should use interrupts if the device is out of DMA channels.
DAQmx_Val_ProgrammedIO 10264 Data transfers take place when you call an NI-DAQmx Read function or an NI-DAQmx Write function.
DAQmx_Val_USBbulk 12590 Data transfers take place independently from the application using a USB bulk pipe.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_DataXferReqCond

Data Type: int32
Description: Specifies under what condition to transfer data from the onboard memory of the device to the buffer.

Valid values

DAQmx_Val_OnBrdMemMoreThanHalfFull 10237 Transfer data from the device when more than half of the onboard memory of the device fills.
DAQmx_Val_OnBrdMemNotEmpty 10241 Transfer data from the device when there is data in the onboard memory.
DAQmx_Val_OnbrdMemCustomThreshold 12577 Transfer data from the device when the number of samples specified with DAQmx_AI_DataXferCustomThreshold are in the device FIFO.
DAQmx_Val_WhenAcqComplete 12546 Transfer data when the acquisition is complete.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_UsbXferReqSize

Data Type: uInt32
Description: Specifies the maximum size of a USB transfer request in bytes. Modify this value to affect performance under different combinations of operating system and device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_UsbXferReqCount

Data Type: uInt32
Description: Specifies the maximum number of simultaneous USB transfers used to stream data. Modify this value to affect performance under different combinations of operating system and device.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_MemMapEnable

Data Type: bool32
Description: Specifies for NI-DAQmx to map hardware registers to the memory space of the application, if possible. Normally, NI-DAQmx maps hardware registers to memory accessible only to the kernel. Mapping the registers to the memory space of the application increases performance. However, if the application accesses the memory space mapped to the registers, it can adversely affect the operation of the device and possibly result in a system crash.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_NumPossiblyInvalidSamps

Data Type: uInt32
Description: Indicates the number of samples that the device might have overwritten before it could transfer them to the buffer.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetChanAttribute

DAQmx_CI_DupCountPrevent

Data Type: bool32
Description: Specifies whether to enable duplicate count prevention for the channel. Duplicate count prevention is enabled by default. Setting DAQmx_CI_Prescaler disables duplicate count prevention unless you explicitly enable it.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_Prescaler

Data Type: uInt32
Description: Specifies the divisor to apply to the signal you connect to the counter source terminal. Scaled data that you read takes this setting into account. You should use a prescaler only when you connect an external signal to the counter source terminal and when that signal has a higher frequency than the fastest onboard timebase. Setting this value disables duplicate count prevention unless you explicitly set DAQmx_CI_DupCountPrevent to TRUE.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_CI_MaxMeasPeriod

Data Type: float64
Description: Specifies the maximum period (in seconds) in which the device will recognize signals. For frequency measurements, a signal with a higher period than the one set in this property will return 0 Hz. For duty cycle, the device will return 0 or 1 depending on the state of the line during the max defined period of time. Period measurements will return NaN. Pulse width measurement will return zero.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

Table of Contents

Internal Development

Creating and Setting Up a gRPC Server

Server Security Support

Creating a gRPC Client

gRPC Client Examples

Session Utilities API Reference

Driver Documentation

gRPC API Differences From C API

Sharing Driver Sessions Between Clients

C API Docs
NI-DAQmx
NI-DCPOWER
NI-DIGITAL PATTERN DRIVER
NI-DMM
NI-FGEN
NI-FPGA
NI-RFmx Bluetooth
NI-RFmx NR
NI-RFmx WCDMA
NI-RFmx GSM
NI-RFmx CDMA2k
NI-RFmx Instr
NI-RFmx LTE
NI-RFmx SpecAn
NI-RFmx TD-SCDMA
NI-RFmx WLAN
NI-RFSA
NI-RFSG
NI-SCOPE
NI-SWITCH
NI-TCLK
NI-XNET
Clone this wiki locally