06-29-2017 03:16 PM
So I have my MatLab script server that passes something called tMax. I have a function that gets called in my code that uses this. When I run the VI, I get.
LabVIEW: Error occurred while executing script. Error message from server: ??? Undefined function or variable 'tMax'.
Error in evalFunctionLabVIEW>ExpRamp (line 19)
y = (b - a*exp(tMax / tau) + (a-b)*exp(t/tau))/ ( 1 - exp(tMax / tau) );
Error in evalFunctionLabVIEW (line 3)
y = evalin('base',expression);
I can then go to the MatLab command window and type who, sure enough my tMax is defined. I am hoping someone knows why this would be occuring
06-30-2017 05:29 PM
This is strange. Is this a new project? Has this ever been working in the past? Have you seen this function work anywhere is in your code? Or a different code base?