06-17-2013 06:37 AM
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
Solved! Go to Solution.
06-17-2013 09:06 AM
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.
06-17-2013 11:07 AM
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.
06-17-2013 11:40 AM
I don't know what NIMStudio488API.exe is. Measurement Studio?
NI-VISA is something else.
.NET 4.5 is VS2012 I believe
06-17-2013 12:12 PM
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!
06-18-2013 03:09 AM
Hi pmdpsp,
I also know not the NIMStudio488API.exe. Where can you download it? What is the prupose of this exe?
06-18-2013 03:44 AM
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.
06-18-2013 06:08 AM
Examples are installed automatically. Look in Start Menu under National Instruments, NI-VISA