Jump to content

Incorporate Matlab DLL in LabVIEW


Recommended Posts

Hello everybody,

I´d like to incorporate a DLL created with Matlab in LabVIEW to develop a communication between them. I´m trying a example from the labview forums (HOW TO GENERATE A DLL FROM A MATLAB FUNCTION SCRIPT TO RUN IN LABVIEW) but it doesn´t work because the dll always return me -1 of the function caller of "mclInitializaApplication". I´ve found that the problem is with the initialization of instance "mcl" of matlab.

I´ve done the C Shared library Example from Matlab help and they work fine.

I´ve attached the the code and document which I used to write my code and to compile it.

Thank you very much

Regards

dllmatlablabview.pdf

dll_labview.zip

Link to comment

Somebody can help me!!

Thanks

Regards

Hello everybody,

I´d like to incorporate a DLL created with Matlab in LabVIEW to develop a communication between them. I´m trying a example from the labview forums (HOW TO GENERATE A DLL FROM A MATLAB FUNCTION SCRIPT TO RUN IN LABVIEW) but it doesn´t work because the dll always return me -1 of the function caller of "mclInitializaApplication". I´ve found that the problem is with the initialization of instance "mcl" of matlab.

I´ve done the C Shared library Example from Matlab help and they work fine.

I´ve attached the the code and document which I used to write my code and to compile it.

Thank you very much

Regards

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.