Hi All
I am trying to build my first dll in CVI which i want to call from within LabVIEW. The dll is shown below. (please forgive the c etiquette i am new to this).
/* Call Library source file */
#include "extcode.h"
__declspec(dllexport) void Interp(short CP1[3], short CP2[3], short CP3[3], short CP4[3], short X,
short Y, short P[3], short PA[3], short PB[3]);
__declspec(dllexport) void Interp(short CP1[3], short CP2[3], short CP3[3], short CP4[3], short X,
short Y, short P[3], short PA[3], short PB[3])
{
X = 15;
PA[0] = X; //X is IP for the desired extrapolated Z point
PA[2] = CP1[2] + ((PA[0] - CP1[0])/(CP2[0] - CP1[0]))*(CP2[2] - CP1[2]);
PA[1] = CP1[1];
PB[0] = X;
PB[2] = CP3[2] + ((PB[0] - CP3[0])/(CP4[0] - CP3[0]))*(CP4[2] - CP3[2]);
PB[1] = CP3[1];
P[0] = PA[0];
P[1] = PA[1];
P[2] = PA[2];
}
The error message i get when i try to call this dll from LabVIEW is -
"The function name specified for this node cannot be found in the library. Right-click the Call Library Function node and select Configure, then choose the correct function name."
I have checked all my connections to the code interface node and all the setting of the dll being called and the function name is identical to that in the source code(Interp).
Any help with this would be a relief!
Thanks in advance
Craig
LabVIEW 2012