05-06-2014 04:08 PM
Sorry, I was being a narcisist, attached file may better suit you. Yes, I plan to delete the beginning and ending data.
Thanks!
Christian
05-07-2014 01:53 AM
05-07-2014 10:57 AM
Gerd, the ptbypt VI does not look forward as required.
05-07-2014 11:09 AM
@altenbach wrote:
Gerd, the ptbypt VI does not look forward as required.
But his current setup will do the 10 before, 10 after, and the current. Somebody just needs to snip off the ends that are invalid.
05-07-2014 11:16 AM - edited 05-07-2014 11:16 AM
@crossrulz wrote:
@altenbach wrote:
Gerd, the ptbypt VI does not look forward as required.
But his current setup will do the 10 before, 10 after, and the current. Somebody just needs to snip off the ends that are invalid.
That's what I meant. it requires some trimming and re-aligning of the outputs. In the current form it is incomplete.
05-07-2014 01:40 PM - edited 05-07-2014 01:41 PM
Hi to all,
yes, my snippet does not "look forward".
I provide hints to the OP, but I leave them something to think about it! (And I never said that I gave them a complete solution!)
In this case it's a simple matter of counting up some elements of an array. I hope the OP can count, right now (s)he can still use all fingers and toes if needed for… 😄
05-07-2014 02:02 PM
There are many ways to apporach this and the attached VI will show some possibilities (adapted from here)
The explicit subset average is probably closest to the desired functionality, it simply takes an average of fewer points near the ends, keeping the data size constant.
Here is a quick comparison. Modify as needed.
05-07-2014 03:19 PM
Thanks "altenbach".
03-15-2018 03:44 PM
Hi, I'm acquiring data from cRIO at 40Hz and put into a queue, the queue go to another while loop for calibration and write to text file. I attached the calibration for loop, I want some of the data written to file at 1 sample/second, the others at 40 samples/second. So, can I just add another for loop inside it and use the mean function to average 40 samples? Thank you, dude.
03-15-2018 04:29 PM
Xiao@Gemini wrote:
Thank you, dude.
Nobody here is named dude and appending to a 4 year old thread that is already marked as solved does not seem to be such a great idea. Please start a new thread and attach your actual VI instead of a blurry and truncated picture. Why not just take the plain mean (i.e. not ptbypt) of the array?