From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Resizing 'Decimate Array'

I am using Labview 6i. Is it possible to programmatically resize the
'Decimate Array' function? I've got a bunch of data to display in a graph
and want no more than say 1000 points displayed. I want to only look at
every other point if I have more than 1000 points and every third point if I
have more than 2000 points, etc... Is there an easy way to accomplish this?

Thanks,

Peter
Message 1 of 5
(3,716 Views)
Hi;

Check the answer to the following question. A VI is provided and I am almost sure it fit your need.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000007D230000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

Best Regards;
Enrique
www.vartortech.com
Message 2 of 5
(3,716 Views)
You an find a vi in the palette Analyze/Signal processing/timedomain.
This one does what you want and is called ! decimate array.vi! The function you seem to recall is called decimate 1D array.
An easier way to find this particular one is to use FIND in the palette. Click on the magnifier glass and type dec and you find both the function and the vi.
greetings from the Netherlands
Message 3 of 5
(3,716 Views)
That's perfect.

Thanks,

Peter


"albert geven" wrote in message
news:5065000000050000000A360000-993342863000@exchange.ni.com...
> You an find a vi in the palette Analyze/Signal processing/timedomain.
> This one does what you want and is called ! decimate array.vi! The
> function you seem to recall is called decimate 1D array.
> An easier way to find this particular one is to use FIND in the
> palette. Click on the magnifier glass and type dec and you find both
> the function and the vi.
0 Kudos
Message 4 of 5
(3,716 Views)
Oh! So obvious and I never saw it. All that trouble...

Well, when I made the vi I mentioned, I used LV 5. LV 6 Find function is an excellent tool! I'll try not to remake the wheel again.
www.vartortech.com
Message 5 of 5
(3,716 Views)