Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Delphi / IMAQ / ActiveX

Hi,
 
I have trouble with the 'NI CW IMAQ 6.0 (Version 1.1')' ActiveX control and Delphi 6.0 (build 6.163)
 
If I try to run this code, CWIMAQ1.Images is always NIL:
 
  ...
  CWIMAQ1.Interface_ := 'img0';  // ok, interface is found
  CWIMAQ1.LoadInterfaceDefaults;  // also ok
 
  CWIMAQViewer1.Attach(CWIMAQ1.Images.Item(1));  // CWIMAQ1.Images is always NIL
  CWIMAQ1.AcquireImage;  // CWIMAQ1.Images is still NIL
  ...
 
I guess the CWIMAQ control should allocate image buffer by itself.
I use the controls with default settings which functions fine in VB or VBA for Excel.
 
regards
 
0 Kudos
Message 1 of 2
(3,155 Views)
solved using borland delphi 6 SP2
0 Kudos
Message 2 of 2
(3,141 Views)