LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems of load and toolbox compatibility in Mathscript

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 

0 Kudos
Message 1 of 3
(6,718 Views)

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.

 

0 Kudos
Message 2 of 3
(6,714 Views)
hi:  i'm having a problem that seems similar to this with the matlab image acquisition toolbox.  i also recursively added the toolbox path to labview mathscript, and still got errors when it tried to run.   i tried vid = videoinput('winvideo'); and it doesn't like videoinput.  also in general toolbox functions seem not to work with the acquisition toolbox.  any help would be great on this.  thanks!
0 Kudos
Message 3 of 3
(6,352 Views)