02-17-2020 10:51 PM
I am trying to write some dot.m functions to call from the LabView maths script. I have followed the description in the links here - verbatium:
http://zone.ni.com/reference/en-XX/help/371361F-01/lvhowto/mathscript_function_syntax/
https://forums.ni.com/t5/LabVIEW-MathScript-RT-Module/MathScript-Nugget-10-How-To-Call-User-Defined-...
but when I write the call to the function in the script LabView does not recognize it. How do I get this working.
this does not work either from defining a function in the same script or trying to call it as a dot.m file. I am using LabView 2015.
02-19-2020 01:50 AM
here are script and VI files:
02-19-2020 01:51 AM
dot.m file:
function a = add2(x)
% add2 is a subfunction. Only fadd3 can call this function.
% add2 computes the constant 2 using Euler's formula:
% e^ (i * theta) = cos(theta) + i * sin(theta)
a = x - (exp(i*pi) - 1);