LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to call DLL develloped with LabView 7.0 in LabView 6.0.2 VIs?

Hello,

I would like to devellop DLLs in LabView 7.0 and use them in LabView 6.0.2.
Is it possible???

I tried this operation. I generated an installer (with the LabView 7.0 runtime in) and tried to load the DLL in a LabView 6.0.2 VI.
When I run the VI, LabView 6.0.2 is crashing...

Here my export function prototype:
typedef struct
{
LVBoolean status;
long code;
LStrHandle source;
} TD1;

typedef struct
{
long dimSize;
unsigned char Numeric[1];
} TD2;
typedef TD2 **TD2Hdl;

void __cdecl driver(LVBoolean *SendCommand, unsigned char DataToSend[], long LenDataToSend, char RHICommandString[], TD1 *errorInNoError, LVBoolean *GetAnswer, LStrHandle *FrameReceivedID, long *Da
taLength, TD2Hdl *DataReceived, TD1 *errorOut);

Any example ???

Thanks for your help,
Regards, Pascal.
0 Kudos
Message 1 of 4
(2,661 Views)
Are you using the standard calling convention or the C calling convention in the build application menu? If you are using the C calling change it to standard. I have run into little glitches this way also. Do you have access to VB or C to try and call it that way? Maybe try that to verify if the DLL is the problem. Also make sure your vi's are exported vi's. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 4
(2,661 Views)
Hello,
I tried the two calling conventions ... same problem.

Pascal.
0 Kudos
Message 3 of 4
(2,661 Views)
Hi Pascal,
I made a simple dll in LabVIEW 7 and called it from LabVIEW 6.0 and it worked fine.
I have attached the dll I built. It adds two numbers.
double Testdll(double B, double A);
Try using this and see if it works for you.
Feroz
Download All
0 Kudos
Message 4 of 4
(2,661 Views)