Jump to content

lpassion

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

lpassion's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. thanks for your reply. In fact , i just want to use VIs in LabVIEW to do a calculation. All the datas from the c or java and LabVIEW handle them.Meanwhile, LabVIEW should return the result which are arrays or other data types. Now, i am perplexed, i don't know how to obtain the array and how to program with c or java. i guess that it should operate on the pointer ? how to realize it?
  2. thanks, bsvingen I know what you said. In fact i had done the same function prototype : void __cdecl ButterWorthFilter1(double samplingFreqFs, double lowCutoffFreqFl, double Input[], double Order, double Output[], long len, long len2); now i want to do one thing that how to get the Output array from LabVIEW to C or Java program. That is to say, how does LabVIEW return the data type and program for the realization in c or java? i guess, in this function, that get the pointer of Output array from the LabVIEW. But i am not sure. I don't know hot to do this! void ButterWorthFilter(double samplingFreqFs, double lowCutoffFreqFl, double Input[], double Order, TD1Hdl *Output, long len) thanks to all!
  3. 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) Then I build the VI in to dll file that is convenient to call by c or java! The above works have finished. However, I don
  4. thanks for your reply You said that it is need a function prototype like below: int MyFunction(double array[], int length); However,the function just return a int value not an array! Can LabVIEW return an array to c program in a time? How do it?
  5. hi I am perlexed in my current work! How to pass an array to LabVIEW for computing, and return the result from LabVIEW? The result is array format. Fortunately, i have done an example to handle a double value not array, so, i want to ask somebody who have done the similiar work for help:-) I know that it need make a function prototype in the process, is it achievable below? //the input array is from c/c++,and this function should return an result which is an double //array format, how can i build prototype through the App Builder double [] HandleByLV(double input[], LVBoolean f, char s[], long len); At present, i just make a function like this: void HandleByLV(double input[], LVBoolean f, char s[], long len double output[],long len2); or void HandleByLV(double input[], LVBoolean f, char s[], long len, TD1Hd1 *output); Who can help me to solve this problem? thanks very much! Email:lyy_csu@hotmail.com
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.