ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
04-26-2010 01:09 AM
When adding a strain gauge channel to a task with some voltage channels using AIChannels.CreateStrainGaugeChannel, the rate of data reading is not controlled by the rate sep up in the internal clock. I use the example "ContAcqVoltageSamples_IntClk" in DAQmx. The read rate is very high after adding a strain gauge channel.
I noticed that a timer is used in the example of AcqStrainSamples to control the reading frequency, although an interal clock and rate are used. Does anyone has the same problem?
05-05-2010 03:52 PM
Hi jiaohui,
If you are using Sample Clock timing, then you are using hardware timing. With hardware timing, a digital signal from the clock on your device controls the rate of acquisition. What specific device are you using? How are you seeing that the rate changes? What are the values of the sample rate that you configure and the sample rate that you are actually experiencing?
05-05-2010 07:12 PM
Hi Sara,
I am using a NI9237 and NI9205 to a cDAQ9174. From the sample "ContAcqVoltageSamples_IntClk", I can change the sampling rate for the internal clock and the data table updates the acquired data with the required frequency, say 1 sample at 5 Hz. However, after one strain gauge channel is added to the task, the sampling rate is not controlled by the specified rate, i.e, 1 sample at 5 Hz, seems being updated at more than 1000Hz, unless more samples are acquired, say, 10000 samples, then the rate will be reduced.
Thanks.
Hui
05-06-2010 12:04 PM
Hi Hui,
You can synchronize the analog input channel (9205) and your strain input channel (9237) by creating a single task that uses a common sample clock.
To do a synchronized continuous acquisition from both your analog input and strain input, you want to go through the following steps: