01-09-2009 08:28 AM
I try to get the "g08cgc" (chi-square calculation) running, but LabVIEW hangs up everytime I start the VI..
Some tipps ... ?
01-09-2009 04:04 PM
01-13-2009 08:12 AM
Hi,
I'll post the code when I'm back in the office (probably next week), OK?!
01-19-2009 01:41 AM - edited 01-19-2009 01:43 AM
Here is the code (wirtten with LV7.1)
Let me say that I'm a newbie using statistical functions and calculations.....
For the calculation of Chi-square I have the followind input variables:
- measured values
- calculated values
- coefficients
If you/someone can give me some tips how to calculate chi-square with this input variables it would be very helpfull (e.g. maybe MS-Excel can do this,too ?! Using .NET etc?)
Thanks in advance!
01-19-2009 11:04 AM
I'm not a statistics expert either, so I don't know if you have to use this as opposed to the built-in statistical functions that LabVIEW has. Have you looked at those?
As far as your call is concerned there are a few points:
01-20-2009 06:24 AM
Hi,
well, the built-in statistic functions don't have a chi-square goodness of fit test............
The Calling Conventions must be "WinAPI) stdcall" as described by NAG.
I've corrected the size of input arrays and input parameters as you said, but still I have problem.
I think it is the "dist" input, which is defined as "enum" datatype in the C code.
I don't know how it must be defined in LabVIEW!?
I'll attache the "corrected" but unworking code again, maybe you have an idea...!
Thank you!
01-20-2009 09:03 AM
03-12-2012 06:12 AM
I find the fail parameter easier to handle with the NAG Fortran libraries. I've written an example of using the NAG Fortran routines to perform chi-squared tests here
Conway