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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9213 - Not the sampling rate I was expecting

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...

 

 

 

Best regards,
Brown

The more I know...the more I don't know
0 Kudos
Message 1 of 7
(2,519 Views)

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

0 Kudos
Message 2 of 7
(2,467 Views)

Hi,

 

are you sure you are reading at 1kS/s when your module doesn't support such sample rates?

 

Why don't you use two DAQmx tasks for those two modules?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 7
(2,463 Views)

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).  

 

 

Best regards,
Brown

The more I know...the more I don't know
0 Kudos
Message 4 of 7
(2,461 Views)

GerW, I will double check this, but it appears I'm sampling at 1kS/s from the 9205 data in my TDMS file.  I created them in a single task for simplicity but maybe I'll have to split them up if it's causing issues. 

-Mike

Best regards,
Brown

The more I know...the more I don't know
0 Kudos
Message 5 of 7
(2,458 Views)

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

Best regards,
Brown

The more I know...the more I don't know
0 Kudos
Message 6 of 7
(2,434 Views)

My apologies for all of the separate posts.  Forgot to save this for a previous version so that it could be opened by more people. 

 

Original VI was saved in 2019.  This one is saved in 2015.

Best regards,
Brown

The more I know...the more I don't know
0 Kudos
Message 7 of 7
(2,429 Views)