labview_user
2008-08-12 15:10:08 UTC
I am trying to use a User-Defined function call in a mathscript node using LabVIEW 7.1 and I cannot seem to make it work.
For example, consider that my mathscript node contains:
clear all;
close all;
x = linspace(1,100,5);
y = mltp(x);
where the labview vi is saved in the same folder as the mathlab script mltp.m that is given by:
function out1 = mltp(in1)
out1 = 5*in1;
Creating an array output of the mathscript node for y yields an empty array.
How can I use User-Defined functions in a mathscript node using LabVIEW 7.1?
For example, consider that my mathscript node contains:
clear all;
close all;
x = linspace(1,100,5);
y = mltp(x);
where the labview vi is saved in the same folder as the mathlab script mltp.m that is given by:
function out1 = mltp(in1)
out1 = 5*in1;
Creating an array output of the mathscript node for y yields an empty array.
How can I use User-Defined functions in a mathscript node using LabVIEW 7.1?