LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

How Mathscrpt node can find m files in MATLAB

Hi,

    When trying to differentiate between MATLAB node and MATHSCRIPT node, I found that MATLAB node requires matlab to be installed as labview and matlabe are communicating via activex server technology. Very well.

 

   My question is if I have several m files and have a function in the main program that calls other files, MATLAB needs to know the path of it (current diectory or work folder). how to achieve that in labview

 

in other words, how labview could tell matlab about where the m files to be called (as it doesn't require matlab to be opened). 

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

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

Hi,

 

You can invoke command path to set searching path. Then, MATLAB script node knows where to find your m files.

Please find the detail in the following example

<examples>\scriptnode\MATLAB script node - Lorenz Diff Eq.vi

 

0 Kudos
Message 2 of 3
(6,675 Views)
Thanks ttrr. You help is much appreciated
Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 Kudos
Message 3 of 3
(6,662 Views)