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-15-2014 01:49 AM

Options

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

Hi,

I am trying to find a solution for splitting arrays. I have data from a graph going into an array. It has 360 measurements. X is Degrees and Y is Force. Since its like a positive sine waveform pattern on the graph, I want to create some sort of rise and fall detection so that each positive sine waveform gets seperated into a new array until it detects a negative slope and so on for the next ones. I could use slope function to detect a positive slope but I dont know how I could use it together with split, index and build array.

Any ideas?

Solved! Go to Solution.

09-15-2014 02:06 AM

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

Hi rvkamat,

I have data from a graph going into an array.

Wrong wording. You have data going from an array into a graph…

I want to create some sort of rise and fall detection

Calculate derivative?

how I could use it together with split, index and build array.

Then you should try to "split, index and build array" with a test VI. Once you know how to "split, index and build" arrays you can combine this with your "slope" VI…

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

Solution

Accepted by topic author rvkamat

09-15-2014 11:40 AM

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

Taking the derivative will give you the slope. From there, you can easily find the indecies for when the slope changed directions. Then use Array Subset with those indecies to make up your new arrays.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions

Unofficial Forum Rules and Guidelines

09-16-2014 01:40 AM

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

Thanks. Its a little bit complicated than that since I dont know if there is a positive slope or negative slope in the beginning or it could even start from the peak.

So I need to check a slope with the derivative function (I implemented it), then stop when there is a negative slope so that I get a Positive Sine Waveform (works) , take the array subset from the index I find (I am having trouble with Arrays but I will figure it out)...I need to do this 6 to 7 times

09-16-2014 06:56 AM

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

If you get stuck, post what you have so far and tells us what you don't understand. We are usually pretty good at giving nudges in the right direction.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions

Unofficial Forum Rules and Guidelines

09-17-2014 01:35 AM

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

Thanks crossrulz.