ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
08-12-2009 04:41 PM
Cory K wrote:What would you like to use to determine the spacing?
You can make it variable using a control, or some other value from your block diagram.
See the attached example.
Hello C.Clad
I like your Vi but from 8.2 Labview actually has this function.
Decimate (single shot) VI
Owning Palette: Signal Operation VIs
Installed With: Full Development System
Decimates the input sequence X by the decimating factor and the averaging Boolean control
And the to be honest I discovered my self by an accident in Labview 8.6. So yes I did also sleep somewhat in class. The nice thing about this function is that it let choose if you want to just pick out samples or use the average sum between each "down sample" interval
08-12-2009 05:43 PM
08-12-2009 07:36 PM
Coq Rouge wrote:
Hello C.Clad
Did you mistakenly call me 'Clad' or was that a running joke from here?
08-13-2009 03:12 AM
Cory K wrote:Did you mistakenly call me 'Clad' or was that a running joke from here?
![]()
I am quite disappointed C. You should know now that I am always 100 serious in this forum. The Labview forum is way to important for pranks and tricks........
![]()
02-09-2010 01:54 PM
OK, I know this is late but I just stumbled on this thread as I was looking for something similar. Here is another stab at decimation (homemade). This VI runs about 4-5x faster than the VI pointed out by Coq. It doesn't have the ability to select the initial index at which to start decimating, nor does it have bounds checking, but this should be fairly straightforward to implement. It's similar to Cory's solution but uses the array indexing on the bounds of a for loop to improve performance.
Just thought someone might be interested.
Peace, Matt
02-16-2010 03:39 AM
02-17-2010 03:40 PM
Maybe this implementation (if you don't mind the coercition dots) which takes into account the starting index?
02-17-2010 03:49 PM
Your image is pointing to your hard drive.
The easiest thing to use is the 'Upload or insert an image on the toolbar above.
02-17-2010 03:55 PM
Ok thanks...I've done a copy&paste. The image was showing on my side. Here's the "real" image:
02-17-2010 04:04 PM
Jorn,
The indexing on the bounds of the array is about as fast as the example you provided. Interestingly enough, adding the routine as a subvi adds considerable overhead.
Peace, Matt