Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Imports NationalInstruments.NI4882 can not be found for VB2010 gpib application

Solved!
Go to solution

Hi all

 I have basic trouble to develop a VB2010 gpib communication application.

when including in my code

Imports NationalInstruments.NI4882  I receive the following error

Warnung    1    Der in Imports "NationalInstruments.ni4882" angegebene Namespace oder Typ enthält keine öffentlichen Member oder kann nicht gefunden werden. ...

after Imports NattionalInstruments. the dropw down menue does not list the NI4882 dll.

I do not know why.

I tried to reference the different dlls in VB via adding a reference, but the I do I get error messages as in the attachment.

I hope some has an idea on what to do.

 

Thanks Uli

 

 

 

0 Kudos
Message 1 of 8
(5,688 Views)

If you installed VB2010 after NI-VISA, you need to do a repair of NI-VISA install to have it include support for Visual Studio 2010.

 

Otherwise, you should to browse to the Current directory where the DLLs are located. I don't have the exact path since I am not at my Windows 7 PC.

0 Kudos
Message 2 of 8
(5,675 Views)

Thanks

I un-installed Ni-Max completely, nothing left from NI in the list of installed programs.

I even de-installed IVI VISA package since this might interfere (anyway I don't know what to do with it)

I re-installed .net framework 4.5, and then tried to re-installed NIMStudio488API.exe.

But the installation stops claiming it needs .net framework version 1.1!! So, is version 4.5 not supported

or is NIMStudio488api.exe the wrong selection?

 

 

other installed SW and related

visual basic 2010 express DEU

Visual Studio 2010 (Ado.net, Express prerequistes, Macro tools, macro tolls -DEU)

 

I need to get over this hurdle.

0 Kudos
Message 3 of 8
(5,669 Views)

I don't know what NIMStudio488API.exe is. Measurement Studio?

 

NI-VISA is something else.

 

.NET 4.5 is VS2012 I believe

 

 

0 Kudos
Message 4 of 8
(5,666 Views)

even after installation of the ni4882_3.11 and the

f1-patch fur Ni-488.2 for Visula Studio 2008/2010

 

no success

still have the same error: see attachment!

0 Kudos
Message 5 of 8
(5,660 Views)

Hi pmdpsp,

 

I also know not the NIMStudio488API.exe. Where can you download it? What is the prupose of this exe?

0 Kudos
Message 6 of 8
(5,645 Views)
Solution
Accepted by topic author pmdpsp

I was able to get rid of the error on Import NationalInstruments.NI4882.

the sequence:

get rid of all NI installations, install ni4882_311, add patch f1,

in VB2010 add a reference to the NationaInstruments.NI4882.net (dll) (which is not automatically created). then the imports statement is without error.

also a reference to Nationalinstruments.common.net is probably necessary.

see attachment

 

now I only need the openGPIB, write and read commands.

 

if some one knows a good tuturial, that would be appreciated.

 

Thanks everybody for his help. 

 

0 Kudos
Message 7 of 8
(5,640 Views)

Examples are installed automatically. Look in Start Menu under National Instruments, NI-VISA

0 Kudos
Message 8 of 8
(5,631 Views)