05-30-2011 09:28 AM
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?
05-31-2011 02:36 PM
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