I finally created a dll containing two vis: RT Ping Controllers and RT Reboot Controller . Both vis work in Labview environment. However, only the FindRTTarget (RT Ping Controllers.vi) function in the dll works in my Labwindows/CVI code. The RebootRTTarget function (RT Rebott Controller.vi) fails with error code 56 - "The network operation exceeded the user-specified or system time limit." Anyone has ideas? Thanks.
Below is the dll h file generated by LV Application Builder:
#include "extcode.h"
#pragma pack(push)
#pragma pack(1)
#ifdef __cplusplus
extern "C" {
#endif
// RT Ping Controllers.vi
void __cdecl
FindRTTarget(LVBoolean *LocalSubnet, char IPAddress[],
long timeoutMs10000, char MACAddress[], long strMACLenght, char RTModel[],
long strModelLength, char Hostname[], long strHostNameLength,
char RTStatus[], long strRTStatusLen, long *ErrCode, LVBoolean *ErrorStatus,
char ErrMsg[], long strErrMsgLength);
// RT Reboot Controller.vi
void __cdecl
RebootRTTarget(LVBoolean *LocalSubnet, char TargetIPAddress[],
char MACAddress[], LVBoolean *status, long *code, char ErrMsg[],
long lenErrMsg);
long __cdecl LVDLLStatus(char *errStr, int errStrLen, void *module);
#ifdef __cplusplus
} // extern "C"
#endif
#pragma pack(pop)