09-17-2009 10:23 PM
Hi all,
I encountered some problems working with Mathscript. After setting the default path, the call of sub .m functions in the node is successful. However, if inside the called .m function I 'load' another txt file, it could not be execute by labview anymore. How am I gonna solve this?
Besides, I heard from a senior engineer that Mathscript doesn't not support Matlab functions with the use of toolboxes, is it true? If yes, how should I integrate Matlab function with use of 'toolbox' and 'load'?
I realized that there was another 'MATLAB script' node which requires a copy of Matlab to execute the functions. I tried this option as well. But it's weird that there're only a few IO types. I could not choose 'boolean'(as what I did with Mathscript) as my output... (my output variable is equal to either 1 or 0. It is recognized as boolean automatically when I worked with Mathscript.)
Can someone give me some advice on this? I'll appreciate your help a lot.
Cheers,
Nicholas
09-18-2009 03:55 AM
Hi,
Which command did you use to load file? Which error did you get?
Before LabVIEW 2009, you can not call load to read data from text file, such as .txt file.
Start from LabVIEW 2009, the following syntax is implemented for load.
a = load(file)
where file specifies path to any text file which contains data separated by comma, space or tab.
04-20-2010 11:36 PM