 Acamus
		
			Acamus
		
		
		
		
		
		
		
		
	
			07-06-2015 12:07 AM
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.
Solved! Go to Solution.
 Blokk
		
			Blokk
		
		
		
		
		
		
		
		
	
			07-06-2015 12:41 AM
07-06-2015 01:16 AM
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.
 Blokk
		
			Blokk
		
		
		
		
		
		
		
		
	
			
			
    
	
		
		
		07-06-2015
	
		
		01:20 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		05-06-2025
	
		
		03:13 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 Content Cleaner
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
The png file which I have attached, includes a VI. Save it and drag&drop it into an empty block diagram:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2PkCAI&l=en-US
If you are a beginner, you can advance through the online teaching material Core1-2:
https://forums.ni.com/t5/Community-Documents/Unofficial-Forum-Rules-and-Guidelines/ta-p/3536495
See the links under "Looking for free training"
07-06-2015 01:46 AM
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.
 Blokk
		
			Blokk
		
		
		
		
		
		
		
		
	
			07-06-2015 02:04 AM
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.
 prabesh99
		
			prabesh99
		
		
		
		
		
		
		
		
	
			10-21-2020 12:45 AM
Could you please explain to me how your vi works?
 GerdW
		
			GerdW
		
		
		 
		
		
		
		
		
	
			10-21-2020 01:20 AM - edited 10-21-2020 01:22 AM