04-29-2013 04:41 PM
Hello All, I'm struggling very hard in to adjust the data on the readings I have from a tensile machine, The plot is attached and also the text data. What I'm trying to do is to calculate the area under the curve at every displacement position intervals (X-axis) e.g from 2.3mm to 15 mm. The first column on the text file will be the displacement (mm) and the second column is defined as the Force (N), the shape of the curve is uneven (jpeg file). I have tried different tools such as numeric integration, least square fit, etc. but still not having reliable results. Does anybody here have any idea on how to perform the analysis I'm concern from?
Please give me advice !!!!
Solved! Go to Solution.
04-29-2013 04:44 PM
Here is the Text File...I forgot to attach it
Please Help !
04-30-2013 03:24 AM
Hi
Please find the attached VI, If area under the curve is of interest then I believe integration would do.
04-30-2013 07:32 AM
Could you please post what you have tried so we don't send you down a wrong path again? Numeric integration is what you want to do. It can be either simple (add the Y values and multiply by the value increment) or complex, using something like Bode's or Simpson's rules. You need to pay attention to how you treat your endpoints (open or closed interval). LabVIEW can easily do all of these, and all will give you slightly different values. I would recommend you read the chapter on numerical integration in the online version of Numerical Recipes. You should then be able to solve your issue. Let us know if we can be of further help.
04-30-2013 09:23 AM
Hi NaruF1, can you send your VI on Labview version 8.5 or previous, I'm not able to see it
I really appreciate your help
04-30-2013 09:35 AM
Sure DFgray I'm attaching the VI I made (is on development and working fine, labview version 8.6), the purpose of it, is to analyze the force-displacement curve coming from the tensile machine.
I putted two cursors to define the limits of integration and the desired area to integrate, the text data attached previously will work with this VI
Please take a look on it, I'll wait for your response
Thanks a lot!
04-30-2013 12:48 PM
Your VI has three major issues:
If you need more help, let us know. Good luck.
04-30-2013 05:13 PM
Thanks DFGray,
I'm trying to implement what you just suggested, everything you stated has sense, actually I did not take care of the data indexing, however this is the first time I'm dealing with the threshold 1D array function, do you have any suggestion to me using this function ? I know it interpolates data on based threshold however i don't know how to create a new array of data containing the new column for the indexed values corresponding for each force and displacement parameters, please let me know if you have some brief and clear explanation other than labview help
I really appreciate your support
05-01-2013 07:08 AM
Assume you have a set of X data points {1.5, 3, 4, 5.5, 7}. These are unequally spaced. You get a start and end X value from your cursors on the graph. Start value is 2.5 and end value is 4.5 from the cursors. You now need to find what index in your points to start with. 2.5 is between 1.5 and 3, indices 0 and 1 in your X array. Similarly, 4.5 is between 4 and 5.5, indices 2 and 3 in your array. You need a function to determine the fractional index of a value given an array of values. Our first point, 2.5, has fractional index 0.67 since it is two thirds of the way between the index 0 and index 1 points. Similarly, the end point has fractional index 2.67 since it is two thirds of the way between indices 2 and 3. The threshold 1D array function gives you this fractional index. Your full X array is the array input. The X value from your cursors is the threshold input. The output will be the fractional index. To use this, you need to convert to any integer. To do this, you need to decide whether you want to round the fractional index up, down, or to the nearest integer. You can use the three rounding primitives in the Numeric palette to do any of these. Once you have your indices, use the array subset primitive from the arrays palette to get the pieces of the X and Y arrays (two subset operations) for integration. Then use the integration routine I mentioned above.
05-01-2013 08:23 AM
I would have access to LabVIEW only tommorow, However, your could post your request on Forum Conversion Board.
Also please note you would need to select the data points using Graph cursors for area of interest
I shall post the 8.5 tomorrow.
Thanks.