Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling VBAI through ActiveX in VB2010

Hi Sir,

 

may i know how to Calling VBAI through ActiveX in VB2010,

 

at this moment, we got no problems to communicate using VBAI ActiveX in VB6.0 with Smart Camera.

 

when wew change to VB2010, we found the function "CWIMAQViewer1.Attach NIVBAITarget1.ActiveInspection.DefaultImage.Image" no more working.

 

i need your advise, what is our next step to do?

0 Kudos
Message 1 of 2
(3,443 Views)

This worked fine for me. Are you testing one of the shipping examples for ActiveX (C:\Program Files\National Instruments\Vision Builder AI 2010\Examples\ActiveX Examples\MSVB)? If not, try that and also make sure you right click on the ActiveX VBAI control in your code and go to Properties and make sure the version selected is Latest or 4.1 (which corresponds with VBAI 2010).

 

Hope this helps,

Brad

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