Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Vision Active with Visual studio 2003 / VB.Net ?

 
 
Hello,
 
I have lots of trouble to setup correctly the vision activeX in the development environment.
 
Is there a document on how to configure VS.Net for using Vision libs ? Do we have have to do imports, such as :

Imports NationalInstruments.CWIMAQControls

Or how do you install a vision ActiveX in the graphical designer ToolBox ?

 
I tried to the ActiveX to the ToolBox, and draw another viewer in a V.Net example. Then I had the following warning
'AxCWIMAQVision' is ambiguous in the namespace 'NationalInstruments.CWIMAQControls'.
Plus, the first Viewer (drawn by NI) disappears in the designer.
 
I am lost there.
 
If anybody might help .... thanks in advance,
 
 Anthony Reymondier
0 Kudos
Message 1 of 3
(3,310 Views)
Hi Anthony,

First of all thanks for using this forum. I'am not really familiar with VS.net, but i'am sure we'll be able to solve this issue.

What are your driver versions ?
You should take a look at chapter 5 of the attached document, hoping it will help you.

One last thing : your last problem may be the consequence of the exisence of mulitple instances of an ActiveX object...

Hopes this helped

Regards,

Richard K.
NI France

Richard Keromen

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

I have found  my answer :

In VS.net (I use VB.Net) there are two ways to add the NI components to the VS toolbox : as component or as COM object.

The best way to add them is via their COM interfaces :  aftere that their icons are displayed like in LabView.

Once you do it that way, you don't need to call the assemblies directly

 

 

0 Kudos
Message 3 of 3
(3,108 Views)