ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
06-26-2006 07:50 AM
07-06-2006 03:13 AM - edited 07-06-2006 03:13 AM
A few things to check:
@daras wrote:I've tried writing DLL in Borland C++ Builder 6, but there were errors with access to complex data. So, I've changed compilator on MS Visual C++ 6.0 and here also I'cant change the complex data. I've defined following structures:typedef struct {
double re;
double im;
} Complex64;typedef struct {
int dimSize;
Complex64 cmplx[0];
} ComplexArr;
typedef ComplexArr **ComplexHdl;and simple function like that:extern "C" __declspec(dllexport) int MyComplexFunction(ComplexHdl arr)
{
int size = (*arr)->dimSize;
Complex64 * cmplx = (*arr)->cmplx;
double tmp;for (int i = 0; i < size; i++, cmplx++)
{cmplx->re *=2;
cmplx->im *=3;
}
return size;
}I can't change anything complex data, these settings just don't work. Is there anybody who now what's going on and what I should change to fix it? I attach also picture with LabView block diagram, because maybe there I do something incorrectly..
Message Edited by rolfk on 07-06-2006 10:13 AM
07-14-2006 04:40 AM