LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[Labview] I want to get average value in every new 100 samples.

Solved!
Go to solution

Hi. I'm Kitaek.

 

I am studying Labview for my research.

 

In my measurement, the sample rate is 125KHz. 

 

I want to get average value in every new 100 samples.

 

Therefore, I want to get mean value of 1~100th samples and store this mean value. Call it average1.

 

Next, I want to get mean value of 101~200th samples and store this mean value, Call it average2.

.

.

.

.

 

I don't know how I get I want.

 

Thanks,

Kitaek.

0 Kudos
Message 1 of 8
(5,420 Views)
Solution
Accepted by topic author Acamus

100_daq_BD.png

Message 2 of 8
(5,392 Views)

Thanks a lot Blokk.

 

But I'm very unfamiliar to Labview.

 

So if you don't mind, would you attach .vi file that is same as the image you attached.

 

That will be very helpful for me.

 

Thanks again,

Kitaek.

0 Kudos
Message 3 of 8
(5,363 Views)

The png file which I have attached, includes a VI. Save it and drag&drop it into an empty block diagram:

http://www.ni.com/tutorial/9330/en/

 

If you are a beginner, you can advance through the online teaching material Core1-2:

https://decibel.ni.com/content/docs/DOC-40451

See the links under "Looking for free training"

0 Kudos
Message 4 of 8
(5,356 Views)

You're very kind. Thank you.

 

But the Labview I am using has the version 2009.

 

So I can't snippet your image.

 

Would you let me know how I can do.

 

 

Best regards,

Kitaek.

0 Kudos
Message 5 of 8
(5,328 Views)

I have attached the 2009 version. Note that, in this old LV version, there is no conditional terminal for autoindexing, so a shift register is used to build the array.

However, I would not use this particular example for your case. If you tell me what kind of hardware you use (number of channels, rate, etc...), I can give a better example including DAQmx VIs and showing how to use the producer/consumer design pattern + data logging into tdms file.

0 Kudos
Message 6 of 8
(5,299 Views)

Could you please explain to me how your vi works? 

0 Kudos
Message 7 of 8
(3,238 Views)

Hi prabesh,

 

basically the same way as the suggestion you got from me in your own thread!

Best regards,
GerdW


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