08-27-2012 12:23 PM
Hello
I am trying to get the slope of a graph and the minimum threshold value (which leads to highest change in the slope of the graph) after getting the measured value from the instruments as shown in the pic attached.
Would be glad if someone can help me with this.
08-27-2012 04:17 PM
Would this function give you what you are looking for?
08-27-2012 04:26 PM
Hi James
I am using LV8.2 and actualy could not see this option available there.
There is no signal for "slope" there.
I used the Curve Fitting Express for getting the slope and it displays slope in the front panel while running and saves only the last slope measured.
I was wondering if there is any way where I could save slopes from all the point and not just the last set.
Thanks !
08-27-2012 10:41 PM
@shubhi wrote:
Hi James
I am using LV8.2 and actualy could not see this option available there.
There is no signal for "slope" there.
I used the Curve Fitting Express for getting the slope and it displays slope in the front panel while running and saves only the last slope measured.
I was wondering if there is any way where I could save slopes from all the point and not just the last set.
Thanks !
I guess you need to do some modification like bundling all the slopes together in a loop tunnel. Could you show the code what you have done then its easy to suggest a method.
08-28-2012 08:09 AM
You could use the Savitsky-Golay filter to calculate the first and second derivatives of your data. The detailed help for the filter VI has information on how to use it to take derivatives. Note that the number of "side points" appears as a shift in the x-axis of the results, so you need to compensate when finding the point of maxiumum slope in your original data.
Lynn
08-28-2012 12:23 PM
Hey Anand
This is my vi. I want to measure the slopes at all the points (and display on front panel )which I measure and stop the loop when the maximum slope has been attained.
Thanks a lot!
08-28-2012 12:39 PM - edited 08-28-2012 12:41 PM
You cannot find slope for each point you have take set points and calculate that and also you will have only one slope for a ramp and it will be the same wherever you take the points. You may find this useful
08-28-2012 12:41 PM
Yes, I agree , so I just want to get that slope which has the highest change from the previous one.
08-28-2012 12:43 PM
No you are confusing. How does your singnal look like is it possible to show a picture of it.
08-28-2012 12:46 PM
Here is the picture. Two curves shows the area I am interested at. The turn on slope by means of which I could find the minimum voltage level and then the slope of the ramp.