08-12-2008 09:49 AM
08-12-2008 09:56 AM
You must save the function or script in a directory that you specified in the Path section of the MathScript Preferences dialog box.From the Mathscript Preferences Dialog Box Help:
08-12-2008 10:11 AM
08-12-2008 10:27 AM
04-24-2009 08:41 AM
I've got basically the same problem here (so no point in starting a new thread). I'm running Labview 8.2 btw...
The above solution (which I've seen in several places on the NI site) is not working for me. When I hit tools>options there is no mention of mathscript. I tried opening the mathscript window and adding the location of my user-defined m-file to the search list but that didn't work. Tried moving the m-file to the default "Labview data" folder and that didn't work. I added the path function to the node to point to where the m-file is and that didn't work either.
For the sake of trying to get the thing to work I defined an m-file to simply mutiply two numbers together when called from the mathscript node to avoid any problems that may occur in the actual function I want to use but this thing just does not want to run it.
Any suggestions?
Thanks.
04-24-2009 10:24 AM
04-24-2009 11:18 AM
Path:
C:\Documents and Settings\control\My Documents\LabVIEW Data
C:\Program Files\MATLAB71\TOOLBOX_calib <- This is where my m-file is.
Working Directory:
C:\Documents and Settings\control\My Documents\LabVIEW Data
The script in my node is:
out = xxx(B, C);
And the contents of xxx.m:
function [A] = xxx(B, C),
A = B * C;
04-28-2009 10:05 AM
04-28-2009 10:34 AM
Hi,
That works for me too. I'm actually upgrading right now so hopefully that'll help with debugging my original m-files.
Thanks for the help all.