Jump to content

matlab to labview

Recommended Posts


I want to send a m-file with a function from Matlab to Labview. An exampel of the m-file is attaced below.

The reson for the function in the m-file is that Im doing an exemenation report in electric enginering and have lot of m-files that alredy are built in matlab and they exists of functions.

My question is what shuld i type in the matlabpromt to save the file in the right format so it can be read from Labview.

Shuld it be 'mcc -x 'filename'?

In Labview I have tryed to import the file whit help from 'Call Function Libary Node' but when i configur the nod only mexLibrary is avilebel in the dropdown for names to be selected as function names. And how shuld the input and outputparameters be set?

When I have tryed this I got the folloving error message 'The dynamic link libary libmatlb.dll culd not be found in the specific path

Her is the m-file

function labview4(y)



if s==2


else p=s-10


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.

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.