Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

CWIMAQdx.OpenCamera always returns camera not found even with proper interface name

i have a C# code snipped for low level grab functionality as shows below :

String str = String.Empty;
status = CWIMAQdx.OpenCamera("img0", CWIMAQdx.CameraControlMode.Controller,out session);
if (status != CWIMAQdx.Error.Success)
{
CWIMAQdx.GetErrorString(status, out str);
}
MessageBox.Show(str);

But the error message everytime i get is Camera not found even with the correct camera interface name as img0 which i took from MAX.

Kindly help.
Thanks in advance.

Regards
Ritesh
0 Kudos
Message 1 of 2
(3,463 Views)

I am using NI Smart camera 1742. I have created a simple processing of grabbing a frame and increasing its brightness in vision assistant and created a vi for the same using vision assistant. but on running the vi it says "camera no found"... how can i solve this?i need urgent help

0 Kudos
Message 2 of 2
(3,254 Views)