ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Min. Max function with 2-D array?

I am trying to take 2 waveforms of data, take the 5 minimum values from one of the waveforms while retaining the corresponding values of the other waveform. Example, if the 10th sample taken of the "sine waveform" is one of the 5 lowest points, I want to save that value as well as the value taken at the exact same time from teh other waveform....

In the actual application I am reading voltage (sine wave) and position using an encoder(square wave). So basically I want to take N samples, take the 5 lowest voltage values obtained, and save each voltage value WITH its position.
So when I look at the front panel and/or a spreadsheet I see something like:
Voltage Reading 1 = -1000 @ 270 degrees

Attached is a generic simulated f
ile I have been trying to get to do this.

Thanks!
Ryan

LV 7.1
0 Kudos
Message 1 of 7
(3,455 Views)
Hi Esa

Here is what you want to do implemented.

Did you change your mind for the encoder ?

Doc-Doc
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 2 of 7
(3,455 Views)
Hey Doc, no I am still planning on getting an encoder, I am just trying to figure out how to do this so I am simulating 2 signals for now. I thank you for your help, however I am still a bit confused lol.
The file you posted is in 7.1, could you save it and repost it in 7.0 please as I cannot read it.

Thanks!
Ryan

LV 7.1
0 Kudos
Message 3 of 7
(3,455 Views)
Sorry for that. Before I thought to check your LVversion, I already had opened your file ...

Anyway, if you have a noisy process, this technique will give very poor results.

Are you really working at ESA ?
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 4 of 7
(3,455 Views)
No I do not work for ESA, what company is that? If you want to hear where esa_paranoid comes from email me
guilette.ryan@basco.com

Ok, thanks for the example Doc, before I saw it I had started working on a way of doing this on my own...I'll post it, tell me if you think your way or this way is a "better" of doing it.

Thanks for all the help!
Ryan

LV 7.1
Download All
0 Kudos
Message 5 of 7
(3,455 Views)
Hey Doc, check this one out...this is probably more along what I was thinking...how does it look?
Ryan

LV 7.1
0 Kudos
Message 6 of 7
(3,455 Views)
esa_paranoid wrote:

> No I do not work for ESA, what company is that? If you want to hear
> where esa_paranoid comes from email me

European Space Agency!

Rolf
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 7 of 7
(3,455 Views)