Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

CWStat Polyfit returns large MSE errors when increasing the order beyond 6

There appears to be an issue with the CWStat Polyfit function in Measurement Studio. It seems to work fine up to the 6th order but after that I'm getting mse values like 1754  and the fit is poor.  So it seems like the fit degenerates after the 6th order for my dataset. Is this a known problem? I don't see the same issue with the Polyfit function in Matlab. My dataset has only 53 points. My version of CWAnalysis.ocx is V6.0.3.589.

 

Thanks Liam

0 Kudos
Message 1 of 4
(5,811 Views)

Hi Liam,

 

Please take a look at this article: http://digital.ni.com/public.nsf/allkb/B76BBCED3623B89F86256F5D007261D1?OpenDocument

 

The CWStat is an ActiveX control and cannot be used in .NET. I think this is what is causing your problem. You will have to pick one of the other functions from the Measurement Studio .NET Analysis library.

 

I hope this helps.

 

Regards,

Mahdieh G
Applications Engineer
National Instruments UK&Ireland
0 Kudos
Message 2 of 4
(5,773 Views)

Hi Mahdieh,

I'm using VB6 and VC++6 and not .NET.

 

Thanks

Liam

0 Kudos
Message 3 of 4
(5,770 Views)

Hi Liam,

 

Which version of Measurement Studio are you running? You should ensure you have support for VB6 installed as well. Please take a look at these documents:

http://sine.ni.com/nips/cds/view/p/lang/en/nid/208965

http://digital.ni.com/public.nsf/allkb/C204CAC86509342286256BBC00710918?OpenDocument

 

It seems to me that this problem is as a result of compatibility issues.

 

Regards,

Mahdieh G
Applications Engineer
National Instruments UK&Ireland
0 Kudos
Message 4 of 4
(5,756 Views)