LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get a time averaged data from DAQ 6009

Solved!
Go to solution

I'am a research scholar . I'am doing a work which needs a constant voltage reading  from the DAQ 6009 card. Now whatever its giving is highly (for my work) fluctuating. So I need a averaged data from it for a interval of 100ms or something. Can I do it through daq assistant VI or outside I have to do or is there any way to solv ethis problem please reply.

0 Kudos
Message 1 of 17
(3,380 Views)

Hi perumpadapu,

 

I usually stay away from ExpressVIs, so I would suggest this:

check.png

Set a channel to read continuously with a sample rate of 1kHz, read 100 samples per DAQmxRead (resulting in a read operation each 100ms) and calc the average of those values...

Best regards,
GerdW


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

can you send a sample working program from screen shot I'am not able to make out what to do.I expect help

 

0 Kudos
Message 3 of 17
(3,360 Views)

Hi perumpadapu,

 

this is a snippet!

And it's very basic, using only functions from the top-level DAQmx palette...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 17
(3,357 Views)

After DAQ assistant we have to make this program, Please reply

0 Kudos
Message 5 of 17
(3,351 Views)

Hi perumpadapu,

 

if you really want to stick with your DAQ assistent you should set sample rate and number of read samples the same way I did and put in the average calculation as I did.

 

I do not recommend using ExpressVIs...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 17
(3,349 Views)

No other options other than this, because i need to average the sum of four signals from DAQ to 100ms, is it possible with this program. I had adjusted the sample rate and the frequency, but then also averaging is not happening. So please help me in this regard

0 Kudos
Message 7 of 17
(3,344 Views)

Hi perumpadapu,

 

don't you think it will help when you attach your VI?

 

Do you really need to sum up 4 signals before averaging? Does it make sense to do so?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 17
(3,336 Views)

I'am sending the program which I wrote for aquisition, so please help me

0 Kudos
Message 9 of 17
(3,308 Views)
Solution
Accepted by topic author perumpadapu

Hi perumpadapu,

 

yo did set sample rate and blocksize to get 100ms blocks of data? Really?

Then why are both set to "1k"? That way you will get data each second...

 

Then I told you to use the Mean function to calc averages. Did you even tried that?

check.png

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 17
(3,301 Views)