Hello,
I have written a LabVIEW SharedDLL with the following signature:
void CurveFitting(char Input[], DoubleArray ResultArray, DoubleArray1 OutputArray)
I'm trying to call this Function from C# but I guess I'm not using the right notation for passing an array from C# to LabVIEW. The first argument Input is a filename, the remaining two are arrays into which LabVIEW is to write the results.
This is the C# code to declare the DLL...
[DllImport("CFArray.dll")]
unsafe static extern void CurveFitting(string Input, out double dResultArray, out double dOutputArray);
... and this is how I'm calling it (unsuccessfully though)
private void btnCurveFit_Click(object sender, EventArgs e)
{
CurveFitting(txtFilePath.Text, ResultArray, OutputArray);
}
Help is deeply appreciated! Thanks.