I don't think you can do this directly from LabVIEW. The declaration
you gave looks like it's for a function POINTER not a regular
function. You will probably need to create a wrapper DLL around this
DLL so that you can have an actual function to call from LabVIEW.
If the communications is serial and you know the protocol, why not
skip the DLL altogether and try to control directly from LabVIEW?
Douglas De Clue
ddeclue@bellsouth.net
louX2 wrote in message news:<506500000008000000C3550000-1027480788000@exchange.ni.com>...
> This DLL talks with and is control of the rs232 port . I would like to
> send a command with the DLL to the port and recive a respones. The
> respons is Voltage levels in string from. Expample a "%" sent to the
> instrume
nt we return a Unit ID.
> INTERFACE char* (WINAPI DYNAMIC KeyCmd)( char const* cmd, char* rsp,
> int maxrsp);
> INTERFACE void (WINAPI DYNAMIC DoCmd)(char const*cmd, char *rsp, int
> maxrsp);