LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to input data from labview to executable application and export the results back to labview

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.

Arnold
0 Kudos
Message 1 of 2
(2,120 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 2
(2,114 Views)