LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to obtain array from extenal language?

 hi,

There is a problem in my current work. I just want to use a VI in LabVIEW for computing, that is use a VI to handle some data including array, int, Boolean, ect. The following VI has shown the process of my work. Please look at it.

   The VI of Butterworth Filter(BF) is used to handle the data, which are denoted by Input, samlingFreqFs,lowCutoffFreqFl,Order. All of the parameters from c or java. We can use App Builder to build a function prototype after the VI be made, and the prototype is shown as follows:

//the Input array is disposed by BF
//samplingFreqFs, lowCutoffFreqFl, Order are the properties of the BF

void ButterWorthFilter(double samplingFreqFs, double lowCutoffFreqFl, double Input[], double Order, TD1Hdl *Output, long len)

The above works have finished. However, I don’t know how to obtain the value of Output array in c or java program. I believe that the function prototype only have the void type, it must not obtain the value of Output array. So, I fell confused in this place. Am I right? If not, how can I solve this problem?

Wait for your reply. Beside myself…

Thanks

Regards!

0 Kudos
Message 1 of 2
(2,249 Views)
You've asked the same thing before. Assuming that you've defined the function prototype correctly when you built the DLL from the VI, you should be able to call it and get the results from it. You do not need to change the return type when you build the DLL. Read the information at http://zone.ni.com/devzone/conceptd.nsf/webmain/7D6A20FE02EDBF318625690700704CF3. Even though it was written for LabVIEW 6, the section on Accessing LabVIEW 6x Arrays from Microsoft Visual C++ is still valid.
0 Kudos
Message 2 of 2
(2,229 Views)