LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

device dll, crash

Greetings,
I'm trying to use a device driver written by delcom to control my usb numeric indicator, but when I try and load the DLL it always crashes.

I've followed the prototyping scheme, and I'm basically trying to get just the simplest function working, which is the call library function to call the function GetNthDevice to return a string. I've set the DWORDs to LONG, and the Lpstr to String. No matter how i set it up, it always crashes.

Can anyone point me in the right direction? I'm used to working in java and this is very greek to me.
Download All
0 Kudos
Message 1 of 3
(2,750 Views)
hi

please try the attached vi. i preallocated the "name" -Parameter with 512 Bytes (according to the manual) and used stdcall - convention. i don't have the hardware to test it, but at least labview won't crash.

regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 3
(2,750 Views)
thank you very very much for helping me with that, i didn't realize about the array (512bytes) and having it as a long was causing the crash every time.

cheers!
0 Kudos
Message 3 of 3
(2,750 Views)