The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Neural Network from Maltab R2012a in Labview
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 1
Registered: 5/9/13
Neural Network from Maltab R2012a in Labview
Posted: May 9, 2013 11:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I'm trying to export neural network from Matlab to dll and run it in Labview. Has anyone try to do this in Matlab R2012a?

I know I must compile m-file script to c code and next write a wrapper to convert from mxArray to double. I was using
but I have newer Matlab compiler version and presented commands are no longer avaliable. Anyway I managed to compile m-file to c code (using deploytool) and wrote a simple wrapper and then compiled it to one dll library (using mbuild -link shared -llibmx). However dll isn't working properly.

I think the reason is to understand how to get data from function generated by Matlab compiler called mclMlfFeval:

bool MW_CALL_CONV mlfMyFunction(int nargout, mxArray** Results, mxArray* Input)
return mclMlfFeval(_mcr_inst, "MyXOR", nargout, 1, 1, Results, Input);

I don't understand why Results is a pointer to poiner. Does anyone know how to get data from this function?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.