Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read from a serial 485 card in a C# program?

Actually, visa32.dll is the native, unmanaged code. You can't add a reference to an unmanaged dll in a .NET language project. In order to use the .NET library for NI-VISA, you want to add a reference to two assemblies - NationalInstruments.VisaNS.dll and NationalInstruments.Common.dll. These assemblies can be found in the
C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Assemblies\Current
directory. Note, too, that the help for all National Instruments libraries is integrated into the MSDN help system. You can launch the help from the start menu under National Instruments >> Measurement Studio 7.1 for VS2003 >> Measurement Studio Documentation.
 
This link should be present in the start menu after you install the VISA .NET components, even if you don't have Measurement Studio installed.
 
Hope this helps,
Glenn
0 Kudos
Message 11 of 13
(1,938 Views)
Glenn, THank you for your help.  Unfortunately, I do not have have a folder named MeasurementStudio2003.  Instead I have the following directory: C:\Program Files\National Instruments 6.0\Measurement Studio, which contains folders named VC, VB, and Help.  But there is nothing about .NET in there.  Perhaps I need a later version of the driver software?? Where could I get that ?

Thanks,
Goharik
0 Kudos
Message 12 of 13
(1,915 Views)
VISA Current Versions
http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C0E91?opendocument&node=132060_US

0 Kudos
Message 13 of 13
(1,900 Views)