LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Matlab MEX Files in LabView ?

What is the procedure to call a MATLAB MEX File in Labview?
0 Kudos
Message 1 of 14
(6,326 Views)
Hello,
If you are trying to call a Matlab script you can use a Matlab Script Node (located on the functions palette under All Functions>>Analyze>>Mathematics>>Formula). If you right click on the border and choose to import it will allow you to import a Matlab script file.

Best Regards,
Chris J
0 Kudos
Message 2 of 14
(6,316 Views)

A MEX file is a DLL compiled in Matlab, not some matlab text code.

 

How to call this MEX dll?

0 Kudos
Message 3 of 14
(5,902 Views)

Atta boy Battler,

I had posted this initially only to find a IRRELEVANT reply months later.

I am clueless of now...

 

If you find some technique of doing this,please post it  Smiley Surprised

0 Kudos
Message 4 of 14
(5,888 Views)

Search 

 

Hope this helps

 

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 5 of 14
(5,885 Views)

Yo Bob,

I have sucessfully called ActiveX and .NET DLLs in Labview in the past ,they work well !!

But i have problems while calling   Matlab MEX  Files in LabView.

 

Anyways, thanks for pointing me to this link.

Appreciated.

0 Kudos
Message 6 of 14
(5,882 Views)

Did you find anything about MEX at that link?  I didn't.

 

Can anybody else or NI help?

0 Kudos
Message 7 of 14
(5,868 Views)

Nope Battler.

I didnt find any help regarding Matlab MEX DLLs on that link by Chris.

 

I presume if they are keeping mum, there is no solution possibly.

Btw, I migrated my testing from LV to MSVC.

Its a lot more easier to call  Matlab MEX DLLs from MSVC.

http://www.mathworks.com/support/tech-notes/1600/1605.html

0 Kudos
Message 8 of 14
(5,865 Views)

NI?  Help?

 

MEX file support?  (MEX file is a Matlab compiled DLL)

0 Kudos
Message 9 of 14
(5,803 Views)

Battler,

 

Your call sounds like a chirp in the haunted woods..

No help in the offing

0 Kudos
Message 10 of 14
(5,800 Views)