From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab script to string in Labview

Hi guys,

 

We have a Matlab script that we want to execute from LabVIEW. We used a "Matlab script" from the script nodes. However, we need to create a string of the Matlab script, with all the text from the Matlab programm. How can we do that?

Thank you!

 

C&L

0 Kudos
Message 1 of 2
(2,240 Views)

Is your Matlab Program in an "m-file"?  Those are simply text files with a .m extension, which you should just be able to read using Read Text File and specifying the path to the m-file.

 

Bob Schor

0 Kudos
Message 2 of 2
(2,206 Views)