02-07-2011 04:44 PM
I have a simple function written in m file under Matlab enviornment,
function [c]=myadd2(a,b)
c=a+b;
I built it into a executable file (.exe), then I want to call it in labview and get the results.
I followed this tutorial and some other information on line:
http://digital.ni.com/public.nsf/allkb/5CF9526FF069EA8E862564C400579DBA
But I didn't see any telling me how to get the Labview array data input to the EXE file and return the results data back to another indicator in labview.
Any one have some idea?
I appreciate the help very much.
02-07-2011 04:58 PM
You probably need to include some command line arguments on your executable that would be the name of a file to get the data from. You could also include a command line argument telling that exe where to store the results.
I am not familiar with Matllab to give you advice on how specifically to do that with your exe though.