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.
I would like to run a MATLAB script on an RT VI without creating a DLL. I realize this probably means running another VI (using MATLAB) on the PC, then dumping the MATLAB graph results across the ethernet connection to the RT controller.
Is this possible? What kind of communication mechanisms are available in LabVIEW to do this?
MATLAB Scripts are not supported in RT so you will have to do what you suggested: Create a vi that performs all the necessary MATLAB operations and then exports that data to the RT controller. I would recommend TCP/IP communication to transfer this data. Have a great day.
Danny G. Applications Engineer National Instruments