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: 

Case Statements or While Loop

OK, here's a little sample vi I built for what I am trying to achieve. I'm hung up at sensing the next rise in force, then take the second peak reading. I don't think that the Peak Reading VI will work or it could be that I just don't understand it enough to use it.

 

I need to take the peak and distance of the 2 readings.

0 Kudos
Message 11 of 13
(485 Views)

Is this what you are looking for. I have generated some data with two peaks. Inside I use the peak detector to find the peaks and give me thier positions.

Tim
GHSP
0 Kudos
Message 12 of 13
(469 Views)

You will have to get the X coordinates to go with the force measurement. That should be very easy to find the index and then index the x array to that index and get the corresponding value.

Tim
GHSP
0 Kudos
Message 13 of 13
(462 Views)