LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

math script node says 'input parameters are not in the correct format'

Hi,

 

I'm attempting to use the 'fit' function in the mathscript node however it informs me that my input parameters are not in the correct format.  In order to check if this is the fault of my inputs I have written out the vectors within the mathscript window and checked that this works in Matlab itself (it does) however it still says that the input parameters are incorrect.

 

I've tried this by pointing towards a user defined function (which uses the fit function) and also pasting the lines contained therein into the mathscript node.  None of these seem to make any difference.  Is there anything obvious that I'm missing which would cause this error?

 

Thanks for any help.

 

Regards,

 

Graham

 

0 Kudos
Message 1 of 5
(6,579 Views)

Most here are graphical programmers and don't deal well with verbal descriptions. Can you show us some code?

 

0 Kudos
Message 2 of 5
(6,561 Views)

Here is the help document for fit in MathScript

 

http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmath/msfunc_fit/

 

0 Kudos
Message 3 of 5
(6,504 Views)

I managed to get it to work using the example in the help file and applied that approach to my input data successfully.  The only problem is it appears to not work with the 'exp2' fit that I was trying to use.  Is this an unsupported function within labview or is there some other reason that this would not work?  From the help file it would seem to suggest this.

 

 

 

0 Kudos
Message 4 of 5
(6,474 Views)

MathScript only supports the models which are listed in the help. 'exp2' is not supported.

0 Kudos
Message 5 of 5
(6,455 Views)