04-10-2012 04:04 PM
Hi,
I have a NI9217 and I'm measuring temperature with 4 pt100 resistors. I would like to know how to read samples with the on-demand mode faster than with the internal clock of the device. The maximum total sampling rate that I'm able to get (4 Hz) with the .NET API and the internal clock comes from limited sample rate = 2 Hz and sample per channels = 2. This is too slow. I'm able get faster (way below 1 Hz) measurements with MAX when I use on-demand mode but I don't know how to use the on-demand mode from the API. I'm using C# and the examples for measuring temperatures are all just for internal clock. A small sample code for setting up the task and reading the samples would be needed.
Thanks,
Janne Holopainen
04-11-2012 01:56 AM
Of course I got the sample rates wrong. The max sample rates are:
API, internal clock: It takes 4 s to get a reading from all channels (1/4 Hz).
MAX, on-demand, high resolution: 1 s to get a reading from all channels (1 Hz).
MAX, on-demand, high speed: less than 1 s to get a reading from all channels (> 1 Hz).
I would need at least 1 Hz / 4 channels = 4 Hz / channel.