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

10-04-2016 07:11 AM

Options

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

Hi everyone,

the file below represents my incomplete code. How can i find the distance between the two minimum of my interpolated curve (represented in the image below)?

Download All

Virus scan in progress. Please wait to download attachments.

10-04-2016 07:50 AM

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

Hi IIDama,

so you have a polynomial and want to know its minima?

Usually you differentiate the polynomial to calculate the min/max points:

y = sum( a_i * x^i) will differentiated to y' = sum (a_i * i * x^i-1).

As you know the polynomial coefficients it should be quite easy to calculate!

Best regards,

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

10-04-2016 06:03 PM

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

You can use the Peak Detector.vi and set it to detect valleys. It will give you the location of the valleys found. You may have to do a bit of interpretation but it is well explained in the help file.

Ben64

--------------------------------------------------

The best way to say thanks is to give kudos!

The best way to say thanks is to give kudos!

10-06-2016 10:08 AM

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

Hi ben64,

i've already tried to use Peak Detector but my problem is that i don't know how to connect it to my code. Can you help me?

10-06-2016 10:15 AM

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

Hi IIDama,

Have you tried it as simple as this?

(It might work better once you use a real waveform and provide usable settings at the other inputs of the PeakDetector!)

Best regards,

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

10-06-2016 10:37 AM

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

I want to find the minimum from an XYGraph, this solution doesn't work for it.

10-06-2016 10:50 AM

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

@IlDama wrote:I want to find the minimum from an XYGraph, this solution doesn't work for it.

Don't do it on the XY Graph, use it on the Waveform Graph. Then you can retrieve the corresponding points on the XY Graph. Have you set the peaks/valleys input to valleys? set a threshold (and tried different values)?

Ben64

--------------------------------------------------

The best way to say thanks is to give kudos!

The best way to say thanks is to give kudos!

10-06-2016 11:03 AM

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

I can't, look at my code!

10-06-2016 11:09 AM

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

Hi IIDama,

I can't, look at my code!

Why can't you? With all the suggestions you already got?

You got your plot of the polynom. Create a waveform with the data of this plot. Feed the waveform into PeakDetector. Set the parameters for PeakDetector and you will get the desired results!

Best regards,

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO