12-08-2005 09:33 PM
I have a USB device which is not manufactured by National instrument, but it has a dynamic link library (DLL) file. I tried to drive it in LABVIEW using call DLL method.
When the program runs, the error message is pop-up.
“An exception occurred within the external code alled by a Call Library Node. This may have corrupted LabView’s memory. You should have save any work to new location and restart LabView.”
The manual says the function is
Function EasyLaseWriteFrame (CardNumber:integer, DataPoint:pointer, Bytenumber:integer, Pointspeed:word):boolean
The declaration in
var
function EasyLaseWriteFrame (var cardnumber:integer; DataBuffer:pointer; DataCounter:integer; Speed:word):Boolean; stdcall; external ‘easylase.dll’;
Because I am not an expert in
OS: Windows 98
Thank you
12-12-2005 03:30 AM
Read the paper about 'including external code in LabVIEW'. (Help-search the bookshelf)
The hurdles I run into where mostly because of datatypes. Some DLL claim to handle 8/16bit integer but the interface is handling with U32...
And always save before run
12-13-2005 06:11 PM
@CHENHY wrote:
The manual says the function is
Function EasyLaseWriteFrame (CardNumber:integer, DataPoint:pointer, Bytenumber:integer, Pointspeed:word):boolean
The declaration in
var
function EasyLaseWriteFrame (var cardnumber:integer; DataBuffer:pointer; DataCounter:integer; Speed:word):Boolean; stdcall; external ‘easylase.dll’;