Hello,
It's not currently possible to run MATLAB scripts on a LabVIEW Real-Time target. When you use a MATLAB script in LabVIEW, it calls the MATLAB engine on the PC. Since the MATLAB engine can't run on the Real-Time Operating System, you can't interface with it to run the scripts. The error you see is expected.
Regards,
Dafna Livni
National Instruments