09-05-2008 08:44 AM
Hi
I am trying to import a dll file and header to make labview vi's wit, only it tells me it cannot create them because they are not in the header file. When i can
see they are (see below).
I have taken a screenshot of the import window and cut and pasted some of the header file, It will convert 2 of them but not the others and i can't see a reason.
Any help please
Gary
// version info
ROUTERCONFIGLIBRARYDLL_API double CFGSpaceWire_GetAPIVersion(void); OK
// Configuration address stack manipulation functions
ROUTERCONFIGLIBRARYDLL_API void CFGSpaceWire_StackClear(void); OK
ROUTERCONFIGLIBRARYDLL_API void CFGSpaceWire_AddrStackPush(U8 dwAddress);
ROUTERCONFIGLIBRARYDLL_API U8 CFGSpaceWire_AddrStackPop(void);
ROUTERCONFIGLIBRARYDLL_API void CFGSpaceWire_RetAddrStackPush(U8 dwAddress);
ROUTERCONFIGLIBRARYDLL_API U8 CFGSpaceWire_RetAddrStackPop(void);
ROUTERCONFIGLIBRARYDLL_API void CFGSpaceWire_SetProtocolByte(U8 ProtocolByte);
ROUTERCONFIGLIBRARYDLL_API U8 CFGSpaceWire_GetProtocolByte(void);
// RMAP functions
ROUTERCONFIGLIBRARYDLL_API void CFGSpaceWire_EnableRMAP(U32 useRMAP);
ROUTERCONFIGLIBRARYDLL_API U32 CFGSpaceWire_IsRMAPEnabled();
ROUTERCONFIGLIBRARYDLL_API void CFGSpaceWire_SetRMAPDestinationKey(U8 destinationKey);
ROUTERCONFIGLIBRARYDLL_API U8 CFGSpaceWire_GetRMAPDestinationKey();
ROUTERCONFIGLIBRARYDLL_API void CFGSpaceWire_SetRMAPAlignment(U8 alignment);
ROUTERCONFIGLIBRARYDLL_API U8 CFGSpaceWire_GetRMAPAlignment();
09-09-2008 03:15 AM
I take it from the no replys that this is not something anybody has seen before. Has anybody had success at producing VI's from DLL and headers
Thanks for any help Gary
09-11-2008 08:15 AM
Hi Gary
Is there any chance you could post the header file and dll on here?
If you do not want to do that, please can you give me some more information. Can you hit 'Next' from the dialogue shown in the image you posted and proceed to create the 2 VI's the wizard allows. Once it is done do you see a report in the form:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
The shared library contains xx function(s), among which the declarations of xx function(s) are found in the header file and these function(s) will be imported. The remaining xx function(s) listed below cannot be imported.
-
-
This could be caused by:
The function(s) are not declared in your header file.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Can you please save this report as a text file and post it up here.
Thanks
Rich
NI | UK
09-12-2008 03:26 AM
Thanks for the reply
Sorry i dont think that i would be allowed to post the DLL it is another companys code. The jpg is a list on functions in the DLL that labview can see and the
list below my sentence is the header file. Now the first 2 can be made into VI's marked with OK but no others, yet i cant see a difference for instance:
ROUTERCONFIGLIBRARYDLL_API void CFGSpaceWire_EnableRMAP(U32 useRMAP); in the header file is matched with CFGSpaceWire_EnableRMAP() in the
jpg yet it will not covert it ?
I don'tt see a difference between the 2 top ones that it can convert and the ones below it can't.
Thanks for any help
PS: the report says that the header file does not have the functions.