Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-IMAQ IEEE1394 in Visual Basic.NET

      hello,everyone!  I am be able to use my 1394 camera in Measurement & Automation Explorer (MAX). But when I use it by VB.NET, it show that "camera cannot found".

     My code is :

   

myImage = New CWIMAQImage
AxCWIMAQViewer1.Attach(myImage)
_CWIMAQsession = New CWIMAQdx.Session
errorcode = CWIMAQdx.OpenCamera("cam0", CWIMAQdx.CameraControlMode.Listener, _CWIMAQsession)
If errorcode <> CWIMAQdx.Error.Success Then
   DisplayError(errorcode, errmessage)
End If

Download All
0 Kudos
Message 1 of 1
(4,623 Views)