ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab code in RT

Hi,
I was running a matlab code using matlab script block, in my local machine. Now, when I run it in RT...the ouput array is empty...ie, Matlab does'nt work. How do I load matlab into RT...so that my RT system can also execute matlab code.
0 Kudos
Message 1 of 3
(5,645 Views)
The Matlab script node only works under the Windows operating system. You would need to convert the matlab code to a DLL to call under RT. Perhaps the Mathworks sells a Matlab compiler?
Message 2 of 3
(5,645 Views)
Hi Shreesha,

GregMo is correct. The Matlab script node uses the copy of Matlab installed on the machine, but when running in LabVIEW RT, the Real-Time target does not have that application installed.

Compiling the code into a dll will work as long as is doesn't have dependence on other functions that require Matlab or Windows.

Here's a link to a knowledgebase that will be helpful.

http://digital.ni.com/public.nsf/websearch/0BF52E6FAC0BF9C286256EDB00015230?OpenDocument

Regards,
Vineet A
Applications Engineer
National Instruments
Message 3 of 3
(5,645 Views)