From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-21-2020 08:24 PM
Hello LabVIEW Community,
Wondering if someone could shed some light on a Sampling Rate problem that I'm having with the NI 9213 module.
I have a cDAQ 9178 with the following modules installed:
Slot 1: 9205
Slot 2: 9264
Slot 3: 9401
Slot 4: 9361
Slot 5: 9213
From the NI 9213 datasheet, the maximum sample rate = 1/(Conversion Time x Number of Channels), or 100 S/s, whichever is smaller. If I have 12 type E thermocouples (plus the built-in cjc channel and the auto-zero channel), the maximum sample rate should be ~96.5 S/s [1/(0.00074*14) = 96.52509653 which is less than 100] for high speed mode. High-speed mode conversion time (per channel) is 740 µs.
This should be 96.5 S/s aggregate right? So approximately 96.5/14 = 6.89 Samples per channel per second?
I’ve set up a single AI task for the 9205 and the 9213 and set the AI sampling rate to 1000Hz. I was expecting to see duplicate values for the 12 thermocouples on the 9213 channels at ~7Hz but I see changes every 10ms or so (every 11 data points). Is this just noise? Seems like these changes in temp might be below the high-speed measurement sensitivity for Type E thermocouples (<0.25°C). Regardless, I'm wondering why I'm seeing changes so often.
I must be overlooking something simple...
05-22-2020 05:24 AM
I've never used this particular module, but is it possible that your VI is attempting to read the data too frequently? If the actual values available from the hardware update every 100 ms or so but you read them every 10 ms, might that produce the effect being seen?
If you post the VI you are using to acquire the data, we may be able to cast more light on the situation.
PsyenceFact
05-22-2020 05:29 AM
05-22-2020 05:34 AM
I was just creating a snippet to show how the AI samples are being acquired. I forgot to attach this last night.
I'm using the "Every N Samples Acquired into Buffer" event for the AI Task and the loop should be pulling the samples from the buffer at 20Hz (every 50 samples).
05-22-2020 05:37 AM
05-22-2020 07:59 AM
Unfortunately I can't test out the hardware until this evening to confirm that I'm truly sampling at 1000S/s.
In the meantime, I created this Dummy VI of how I'm acquiring the data. I can't post the full DQMH module but this should be representative of what I'm trying to accomplish. Please let me know if you see anything off about how I'm taking the measurements.
Cheers
05-22-2020 08:35 AM