LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the max P2P avlue of a signal

Solved!
Go to solution

Hello!

 

I'm very new to the whole LabView program, and have some issues with very basic need I have to apply to my program.

 

I need to measure the max P2P of a signal and preform some analysis on that, the problem is that the Amplitude and measurments VI gives me the P2P at every given sample. Is there any way for doing this right?

 

Thank you

0 Kudos
Message 1 of 5
(3,637 Views)

You have options:

  1. In the Waveform Measurements palette, you can use Amplitude and Levels.vi.  This is a flexible VI with several options, depending on your waveform type.  The defaults usually work well. This is probably your best bet.
  2. If you data has almost no noise, you can use Array Max & Min (in the Array palette) to find the maximum and minimum points and take the difference.  This is a brittle measurement, since one bit of noise can give you a large error.
  3. You can code your own algorithm. LabVIEW is a fairly complete general purpose language.  This type of thing is usually fairly easy to do if you have the algorithm you would like to use before you start.
Good luck.  Let us know if you need more help.
0 Kudos
Message 2 of 5
(3,624 Views)

Thank you for your solution, however, my main problem is not to aquire the P2P values, it is to keep the maximum value.

 

In the same subject, I seems to have a problem getting the max values of anything. It just keeps changing as the VI runs.

 

Is there any hard and fast rule about placing this kind of VI's in a case structure or loop that I had overlooked?

Message Edited by Moshes on 02-03-2010 11:03 PM
0 Kudos
Message 3 of 5
(3,605 Views)
Solution
Accepted by Moshes

You can store it in a shift register.

 

 

A shift register is one of those basic elements of LabVIEW that you must become familiar with. Have you taken any of the tutorials?

Message Edited by Dennis Knutson on 02-03-2010 10:52 PM
0 Kudos
Message 4 of 5
(3,599 Views)

Thank you!

 

I took the basics I course, but I find that Labview needs a wholy different way of thinking then traditional programing and still struggling with that.

0 Kudos
Message 5 of 5
(3,577 Views)