10-14-2020 09:49 AM
I am trying to connect to a GigE camera (lucid). I am using the following code. I can discover the camera and even see all of its information before opening but when I call IMAQdxOpenCamera, it never returns. I have tried to use invalid camera names to see if I could at least get it to return with an error but that does not change anything. I just downloaded the most recent IMAQdx and Vision development module (trial). I will purchase the development module if I can get this working. Any suggestions?
if (Log_Imaqdx_Error(IMAQdxResetCamera ("cam0", TRUE)))
goto cleanup;
if (Log_Imaqdx_Error(IMAQdxDiscoverEthernetCameras("169.254.211.191", 5)))
goto cleanup;
if (Log_Imaqdx_Error(IMAQdxEnumerateCameras(NULL, &cam_count, FALSE)))
goto cleanup;
cam_info = malloc(sizeof(IMAQdxCameraInformation) * cam_count);
if (Log_Imaqdx_Error(IMAQdxEnumerateCameras(cam_info, &cam_count, FALSE)))
goto cleanup;
// Open a session to the selected camera
if (Log_Imaqdx_Error(IMAQdxOpenCamera(cam_info->InterfaceName, IMAQdxCameraControlModeController, &session)))
goto cleanup;
10-19-2020 05:54 AM
I continue to try to figure this out. I can access the camera via the Lucid provided ArenaView software, NI MAX, and even Labview. But for some reason, CVI just stops in the IMAQdxOpenCamera call and never returns from it. It would be easier to solve this if it at least returned with an error.
10-19-2020 06:40 AM
OK I figured it out. It was because I was using a trial version of Labwindows/CVI 2019. I activated it and it immediately worked! I was under the impression that trials were fully functional for the trial period (I had 30 days left). Well, there is several hours of my life wasted 🙂
10-20-2020 10:59 AM
I finally figured this out. It appears that the LabWindows/CVI activation has to be complete for some functions to work. I had both the trial version of CVI 2019 and the VDM. Some functions of the VDM would work and others would not. It appears that trial versions are not 100% functional.