10-28-2008 04:15 PM
Solved! Go to Solution.
10-28-2008 04:43 PM
10-28-2008 05:15 PM
The adapter is set to C/C++ adapter when calling the DLL from Teststand. Is there something special that needs to be done when doing the build other than setting the build target to "Shared Library (DLL)"?
btw: I have Labview 7.1 and TestStand 3.1
10-28-2008 06:28 PM
10-28-2008 06:32 PM
Troy,
It can except that F22 wants to do it as a dll. As far as I know it should just work. I am installing 7.1 right now to test it out. I'll let you know what I come up with.
Regards,
10-28-2008 09:07 PM
10-29-2008 09:29 AM
F22,
Are you connecting your controls and indicators to the connector pane? Everything seemed to work fine for me. Also, after you select the dll in the specify module for that step, can you see the function (i.e. VI name) in the Function Name drop down?
10-29-2008 01:03 PM
The controls and indicators are connected to the connectors. Also, answering an earlier post, the prototype information for the inputs and outputs are not automatically displayed. I can manually define the prototypes, but then the question is how does each prototype link to its corresponding parameter (by name?). I've also tied creating just a simple VI that has just one string input and one string output. I built the VI to a DLL and tried calling in TestStand and i get the same results. I've inserted the resulting header file after that build. Which, by the way, looks exactly like my other created DLL's header file. The difference in bold(the name of the VI). Which makes me thik that my build DLL process might be off.
#include "extcode.h"
#pragma pack(push)
#pragma pack(1)
#ifdef __cplusplus
extern "C" {
#endif
void __stdcall String_input_output(void);
long __cdecl LVDLLStatus(char *errStr, int errStrLen, void *module);
#ifdef __cplusplus
} // extern "C"
#endif
#pragma pack(pop)
10-29-2008 01:28 PM
void __stdcall Dll_demo(char String[], char String2[], int32_t len);" This in the header All that you have is "void'. When you created the dll, did you click the Define VI prototype on the Source Files tab?
10-30-2008 01:36 PM
Looks like that helped a little. As you can see from the new header the prototypes are there. But still when i call the DLL from TestStand there are no inputs and outputs. I can select my function, but when i hit reload prototypes it errors whit "This function either does not have parameter information or ...". Anything else about the build that i'm missing?
#include "extcode.h"
#pragma pack(push)
#pragma pack(1)
#ifdef __cplusplus
extern "C" {
#endif
void __stdcall HW_SelfTest(char LRMType[], LVBoolean *Bus, char RearMUTID[],
char FrontMUTID[], char MIDEID[], char ReportText[], LVBoolean *PassFailFlag,
LVBoolean *Run_FW_SBIT, long len);
long __cdecl LVDLLStatus(char *errStr, int errStrLen, void *module);
#ifdef __cplusplus
} // extern "C"
#endif
#pragma pack(pop)