LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I tell MATLABScript where my matlab path is?

Well,

I found the MATLAB (That's right REAL MATLAB) script nodes buried in some godforsaken function pallet.  How do I get it into the structures pallet where it belongs???

OK, so how do I tell the scriptnode where to look for mfiles?

Too bad it doesn't support structures/clusters.  Does anyone have any tricks for say flattening the cluster and reconstituting it on the matlab side?

String arrays to array of string cells would be nice to add to MATLAB script node too.

thanks


LV 8.6 on Windoze XP
0 Kudos
Message 1 of 3
(4,314 Views)
To answer your questions one by one:


I found the MATLAB (That's right REAL MATLAB) script nodes buried in some godforsaken function pallet.  How do I get it into the structures pallet where it belongs???

You can edit your palette to place items wherever you want. Tools -> Advanced -> Edit Palette Set.


OK, so how do I tell the scriptnode where to look for mfiles?

You have to set the working directory with the appropriate Matlab command. Try a "cd" command.


Too bad it doesn't support structures/clusters.  Does anyone have any tricks for say flattening the cluster and reconstituting it on the matlab side?

String arrays to array of string cells would be nice to add to MATLAB script node too.

You can only deal with the datatypes that Matlab provides. Matlab has a struct data type, but I suspect you're probably better off manipulating the data prior to passing it to Matlab into simpler datatypes rather than trying to deal with a flattened string.

0 Kudos
Message 2 of 3
(4,302 Views)
Thanks for the help.

MATLAB supports a lot more data types than what the scriptnode can handle.

Well, the way things are set into concrete I have no choice but break up clusters outside of MATLAB script.

However, I would really be in high cotton if the NI developers had written the glue code to pass more data types in.  If you don't think this can be done, send me the LV source  and I'll show you how to do it!


Message Edited by Clueless1 on 03-25-2008 02:37 PM

Message Edited by Clueless1 on 03-25-2008 02:38 PM
LV 8.6 on Windoze XP
0 Kudos
Message 3 of 3
(4,300 Views)