05-27-2015 03:46 PM
I am looking to do a calculation with a slope property of a linear regression channel. What is the proper syntax/way to go about extracting the property of the channel?
05-28-2015 09:53 AM
Hi mcclurj1,
This is what I would recommend:
Set Group = Data.Root.ChannelGroups("Example") Set Xchannel = Group.Channels("Time") Set Ychannel = Group.Channels("Speed") Set XfitChannel = Group.Channels.Add("Xfit", DataTypeChnFloat64) Set YfitChannel = Group.Channels.Add("Yfit", DataTypeChnFloat64) Call ChnRegrXYCalc(Xchannel, Ychannel, XfitChannel, YfitChannel, "linear", "Partition complete area", 100, 1) MsgBox YfitChannel.Properties("ResultRegrCoeffB").Value
Brad Turpin
DIAdem Product Support Engineer
National Instruments