03-14-2017 12:07 PM
I have generated .dll file ( .NET assembly ) with Matlab 2015b deploy tool based on .m function, I am trying to include generated dll in Labview 2013 but i have a problem with mxArray data type ? Can someone give me proper directions how to integrate generated dll with Labview and use function from it mlfUcitavanje_mape(mxArray pathname) ?
03-14-2017 04:18 PM
Hello stefan1234,
Thanks for using NI Forums. In LabVIEW you can call Dinamic Link Libraries (dll) created in others programming languages with the Call Library Function Node. I would like to share with you this tutorial that shows how accesing dlls in LabVIEW.
http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33
http://www.ni.com/tutorial/3009/en/
Regards!!!
Sebastian.
03-14-2017 08:17 PM
Hello Sebastianm127,
I resolved my problem using constructor node for .NET, I made constructor node for my .dll generated from Matlab and generate method from it, after that i used MWArray.dll in constructor node to instantiate MWArray data type for function parameter which I've used in .dll ... 😄
Regards !!!
Stefan
06-20-2017 09:10 AM
Are you able to share screenshots or other details of what you did to accomplish the .NET assembly call using mwarray.dll?
02-27-2018 12:53 PM
Hi Stefan1234,
Can you please share the .vi file or a screenshot for how did you managed to handle the inputs and outputs to a .Net assembly generated by Matlab?
I've used Matlab 2015a and the deploytool to generate a .net assembly then I tried to call it from LabVIEW 2017 using node constructor. I received an error that the input is null. I tried to instantiate MWArray as you did but no clue. I am not sure if I managed to connect it right or not because I am new to LabVIEW.
Your help is really appreciated
05-09-2019 01:32 AM
Hi Stephan,
if a Matlab dll is supposed to return a numerical nxm array, how do you instantiate the data type to recover the numerical data from the MWArray output of the method you create from your Matlab dll constructor node? Can you show a jpg of this?