09-13-2011 07:44 AM
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
09-23-2011 10:40 AM
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,
09-23-2011 10:52 AM
Hi Mahdieh,
I'm using VB6 and VC++6 and not .NET.
Thanks
Liam
09-27-2011 11:00 AM
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,