thenoob94 Posted April 19 Report Share Posted April 19 I have the following c function: extern "C"{ int getInterfaces( uint32_t numInterface, void* g_hSystem); } int getInterfaces( uint32_t numInterface, void* g_hSystem) { //Get Interface bool bChanged = false; SV_RETURN ret = SVSystemUpdateInterfaceList(g_hSystem, &bChanged, 1000); if (SV_ERROR_SUCCESS != ret) { printf("%s SVSystemUpdateInterfaceList failed!:%d\n", __FUNCTION__, ret); return -1; } ret = SVSystemGetNumInterfaces(g_hSystem, &numInterface); if (SV_ERROR_SUCCESS != ret) { printf("%s SVSystemGetNumInterfaces failed!:%d\n", __FUNCTION__, ret); return -1; } if (0 == numInterface) { printf("%s No Interface Available!\n", __FUNCTION__); return -1; } } How would I create "void* g_hSystem" in Labview? Quote Link to comment
Zou Posted April 19 Report Share Posted April 19 You need the .h file which defines g_hSystem. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.