Hi, I have written a simple program in C , which uses malloc function for allocating memory for the array.When iam calling that DLL using call library function node in labview, it is not giving any output, my doubt is can we use malloc function in C program from which we will create DLL and is called in labview? I am attaching my C code and DLL and also labview file please tell me where i am doing wrong?
There's no problem using the Malloc function in C and call it as a DLL in LabVIEW. But LabVIEW has a different memory management than C. It is probably not recommended to allocate array memory in C for labVIEW arrays You can use initialize array in LabVIEW instead.