I am trying to use a MathScript node in a simple test VI that fits a 2D Gaussian function to some imported data. The fitting function appears to work fine, but when I try to use the 'lsqfit' function I get the following error:
"Error -90046 occurred at Error in function lsqfit at line 7: The input parameters are not in the required format."
As far as I can tell all the inputs are in the correct format, and if I comment out the function call to 'lsqfit' the VI executes fine. I've attached my VI file, my fitting function file (as a .txt file), as well as some sample data. What am I missing here?