I am trying to use "Call Library Function Node" to call a DLL to control a device.
The prototype of one function in the DLL is: function putcommand(prec: pointer):longint;
The mannual describes the function as following:
"Together with the Putcommand function ,a 32 bit pointer, which points to command
message structur (see below) is to be transferred to the DLL."
TCommandMsg = packed record
ApId : longint;
commandnr : word;
command : tcommand;
end;
where the "tcommand" structure is shown below:
tcommand = packed record
commandID : word;
param : tparam;
end;
Both the type and size of the fields within the two structures are given.
How can I pass the parameter from LV to the DLL?
Thanks
Message Edited by huangjack on
02-17-2008 11:04 AM