Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

VB shutdown when adding a NI activex to a project

Hi!
When I open a project which contains the activeX file 'cwimaq.ocx', VB automatically closes. This also happens when I create a new project and try to add the activeX to the project. I discovered that this occurs for all of the NI activeX-s.
What could be the problem?
Thanks is advance,
Amnon Paz.
0 Kudos
Message 1 of 7
(3,993 Views)
Amnon,

The type of behavior you are describing is typical of problems with Windows installers or corrupt files.  It sounds like something has gone wrong with either your installation of VB or perhaps the NI drivers.  The fact that other NI ActiveX controls do not work might to point to problems with the development environment.  A few questions:

1.  Are you able to load other non-microsoft ActiveX components?
2.  What OS are you using?
3.  What version of VB are you using?
4.  What version of IMAQ are you using?
5.  What other NI ActiveX components have you tried using?

Another thing you might like to consider is that often times development environments require that you be logged in with administrator priviledge levels.   This has caused problems in the past - especially with  NI drivers. 
S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 7
(3,984 Views)

Hi,

I've tried working from an administrator account, and It works fine there, but I would like to work from my usual account, so this is only a good start. Here is some answers:

1. Yes, I can load non-Microsoft ActiveX components.
2. I'm using Windows 2000 SP4.
3. I'm using Visual Studio 6.0
4. I think the version is 2.6, but I'm nit sure about that.
5. I've tried using IMAQ Vision and some other ActiveX-s which I've chosen randomly.

Thanks a lot,
Amnon.
0 Kudos
Message 3 of 7
(3,977 Views)
Amnon,

The IMAQ drivers (and most NI drivers in general) access hardware and registry resources that require administrative rights to access.  So it is necessary to use an account that has administrative rights to use the IMAQ ActiveX component for VB.  You can either use the administrator account in Windows, or you could add yourself to the administrators group on the PC you are using, but to use the component you will need to have administrative rights.




S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 7
(3,971 Views)
Hi!
Do you know if this restriction applies to MATLAB too?
 
Amnon.
0 Kudos
Message 5 of 7
(3,946 Views)
Amnon,

I am not completely familliar with the MATLAB development environment, but to interface with our driver in general it is necessary to have administrator rights.
S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 6 of 7
(3,938 Views)

Thanks a lot!

Amnon,

0 Kudos
Message 7 of 7
(3,927 Views)