DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting properties from linear regression channel

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?

0 Kudos
Message 1 of 2
(4,953 Views)

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

0 Kudos
Message 2 of 2
(4,930 Views)