I use "Call Library Function Node"in LabVIEW6.1,and this is the .c file in VC++
/* Call Library Source File */
#include extcode.h
_declspec(dllexport) long avg_num(float a[], long size, float *avg);
_declspec(dllexport) long avg_num(float a[], long size, float *avg)
{
/* Insert Code Here */
int i;
float sum=0;
if(a != NULL)
{
for(i=0;i < size; i++)
sum = sum + a[i];
}
else
return (1);
*avg = sum / size;
return (0);
}
But I get the following error:
f:\mydocument\labview\myshared.c(3) : fatal error C1083: Cannot open include file: 'extcode.h': No such file or directory