Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Does LV8.2 support this kind of parameter passing between LV and DLL.

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
0 Kudos
Message 1 of 2
(2,950 Views)
0 Kudos
Message 2 of 2
(2,932 Views)