# Multifunction DAQ

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## Issue with sample rate for add_ai_bridge_chan

Hello, everyone,

I am using nidaq in python to acquire analog channels. When I use ai_current_chan or add_ai_voltage_chan I have no problem, I set the acquisition frequency and get what I expect. But when I use add_ai_bridge_chan, it is as if the set frequency is not taken into account. Below is a code example.

import nidaqmx
import numpy as np
import time

Samples_rate = 50 # [n]
Time_sampling = 13 # [s]
units=nidaqmx.constants.BridgeUnits.MILLIVOLTS_PER_VOLT,
nominal_bridge_resistance=351.000)
t = time.time()
elapsed = time.time() - t
print(elapsed)
print(np.shape(data))
Message 1 of 5
(287 Views)

## Re: Issue with sample rate for add_ai_bridge_chan

How do you tell that the set frequency is not working? What is the expected behavior and what were you seeing?

What is the model of the DAQ device you are using?

-------------------------------------------------------
Message 2 of 5
(265 Views)

## Rif.: Issue with sample rate for add_ai_bridge_chan

For example in the given code I expect to receive as elapsed 13 seconds. If I only use the current channel, I receive exactly 13 seconds. Invese if I add the bridge, I get less than 1 second. It is as if it does not listen to the value of Samples_rate (in the example 50 Hz) and acquires at a high frequency.
I am using cDAQ-NI9178, NI9215 and NI9237.

Message 3 of 5
(258 Views)
Solution
Accepted by topic author En_Am

## Rif.: Issue with sample rate for add_ai_bridge_chan

According to NI-9237 Specifications, the minimum data rate is 1.613kS/s. Even if you specify a sampling rate of 50S/s, the driver will coerce this value to 1.613kS/s.

For a detailed explanation, see Valid Sampling Rates for NI DSA, CM C Series and SC Express Devices

-------------------------------------------------------