smcnally
-
Posts
3 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by smcnally
-
-
Sorry, I am new to using call library function and don't know where to begin. I tried using the import shared library (.dll) tool to create vi's for each function in my dll. When I load the supplied .h file it seems like my definitions are not recognized. could someone please show me how to create a labview vi for calling the functions in the attached .dll? It's been several years since I've dealt with C code/and defintions and variable types.
Thanks
Steve M.
-
Very nice tool. I was wondering if you thought about handling multiple layers of children as well as reading and writing symbol index to ini file as well as multiple column information vs. just column index 1.
Thanks
Steve M.
Using Call Library Function for dll
in Calling External Code
Posted
Thanks Rolf
Another Question. Below is the .h file
#ifndef _MPUSBAPI_H_
#define _MPUSBAPI_H_
#define MPUSB_FAIL 0
#define MPUSB_SUCCESS 1
#define MP_WRITE 0
#define MP_READ 1
// MAX_NUM_MPUSB_DEV is an abstract limitation.
// It is very unlikely that a computer system will have more
// then 127 USB devices attached to it. (single or multiple USB hosts)
#define MAX_NUM_MPUSB_DEV 127
DWORD (*MPUSBGetDLLVersion)(void);
DWORD (*MPUSBGetDeviceCount)(PCHAR pVID_PID);
HANDLE (*MPUSBOpen)(DWORD instance, // Input
PCHAR pVID_PID, // Input
PCHAR pEP, // Input
DWORD dwDir, // Input
DWORD dwReserved); // Input <Future Use>
DWORD (*MPUSBRead)(HANDLE handle, // Input
PVOID pData, // Output
DWORD dwLen, // Input
PDWORD pLength, // Output
DWORD dwMilliseconds); // Input
DWORD (*MPUSBWrite)(HANDLE handle, // Input
PVOID pData, // Input
DWORD dwLen, // Input
PDWORD pLength, // Output
DWORD dwMilliseconds); // Input
DWORD (*MPUSBReadInt)(HANDLE handle, // Input
PVOID pData, // Output
DWORD dwLen, // Input
PDWORD pLength, // Output
DWORD dwMilliseconds); // Input
BOOL (*MPUSBClose)(HANDLE handle);
#endif
Labview does not seem to understand PVOID,DWORD,PWORD, and BOOL datatypes. I beleive these are DELPHI datatypes. What would you recommend me using for Labview recognized datatypes instead? also to I need to define my variable name as weill i.e. #define Data void
Thanks for the help
Steve M.