02-04-2020 06:19 AM
I'm having issues creating a channel of the slope of a Bending Moment Channel with respect to time. (dBM)
A previous posted to this forum advised that ....
'You can calculate the slope of your data by using the Differentiate function from the Basic Math function set in the Analysis view. Simply pass in the X and Y channels for your data as the arguments to the Differentiate function and the slope of your data will be calculated and then placed into a new channel. The Differentiate function will calculate the slope between each data point in your data set. If your data is linear, all of the values in the Differentiated Y channel will be the slope of your linear data. If your data is nonlinear, the Differentiated Y channel will contain all of the slope values between each individual point in your data. You can then retrieve the slope of the line from the Differentiated Y channel that was generated by the Differentiate function and display this data in the report view.'
This doesn't work for me due to (I think) the noisy nature of the BM data. I've tried smoothing before carrying out the differentiation without success.
This task was previously done in excel (as part of a larger data processing exercise) but due to large data set excel kept freezing. Diadem much better except for derivation of slope for which I am having to use Excel. Excel doesn't seem to be affected by the noisy data and creates a polynomial best fit curve plus equation. I can then use Diadem Calculation Manager to create the required dBM channel in Diadem using the differentiated best fit equation from Excel.
I really need to completely remove Excel from the process but cannot find a way to do this in Diadem. Any ideas?
Thanks
Richard Norton
02-04-2020 11:18 AM - edited 02-04-2020 11:19 AM
Hi Richard,
DIAdem could also perform a polynomial best fit prior to the differentiation. There's a whole palette of curve fitting options in the ANALYSIS panel. Care to post a sample data set for me to look at? If you're automating all this with a VBScript, please post that as well, or you can email me directly at brad.turpin@ni.com.
Brad Turpin
Senior Product Support Engineer
National Instruments