Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

09-17-2014 07:24 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi,

I am a beginner at Labview. Attached below is the program and the Output of my Program. I have plotted the original 2 Dimensional Array of Force(Y) vs Angle(X) on the XY graph( Blue Lines and Dots) The Black Curve is the polynomial fit of this data. Now with a Peak Detector I have found the amplitude and the location of the peak (Black Square) which gives me the Side Angle and the Force. But now heres my problem, I want to find the original Force from the original data with respect to the new Side angle(X value) that I get from the Peak detector. That means, I want to superimpose this point (X Value) on the original Graph and find the respective Force (Y Value).

Can anyone tell me how I can do that?

Solved! Go to Solution.

Solution

Accepted by topic author rvkamat

09-17-2014 07:57 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi rvkamat,

you need to use the same Interpolate1DArray function you used to find that point on the original measurement data:

Find the (broken) index in the X array and use that index to interpolate the Y data array…

Best regards,

GerdW

CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO

Kudos are welcome

GerdW

CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO

Kudos are welcome

09-17-2014 08:11 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Somehow the picture vanished, so let's try again:

Best regards,

GerdW

CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO

Kudos are welcome

GerdW

CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO

Kudos are welcome

09-17-2014 08:14 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi GerdW

Thanks that worked! I was trying with the Interpolate 1D function before but now it worked properly together with the Threshold 1D Function.

09-17-2014 10:15 AM - edited 09-17-2014 10:20 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Alternatively, interpolate array works directly on an array of XY points, eliminating the second function. Same difference.

(Note that the points need to be sorted in X)

(function is the lower part are "index & Bundle cluster array", and "interpolate array")

You can even swap the inputs to "index&Bundle ..." and then use "threshold array" instead in the same way. 😉