Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Should I use the langint.dll or the NI4882.dll in my new project?

Primary Software: Driver Software>>NI-488.2
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: Measurement Studio>>Measurement Studio for .NET Support

Problem:
I'm starting a new project using a NI PCI-GPIB card and will be developing the code in C#.  There are two different gpib dlls installed on my computer: langint.dll and National Instruments NI4882.dll.  Which dll should I use in my new project?

Solution:
If you are starting a new project, you should use National Instruments' NI4882.dll.  It provides better documentation, examples, and integration with Visual and Measurement Studio, and is the library that the Instrument I/O Assistant generates code for.  It also provides a more natural .NET programming experience by representing programming idioms in a manner consistent with the rest of the .NET Framework.

The langint.dll, on the other hand, is a flat wrapper on top of the C API. Its purpose is to help developers who are very familiar with the C API and just want to port a C program to .NET (likely C#).

To assist with development of your application in C# and VB.NET, reference the examples that ship with the 488.2 driver.  When you install the 488.2 driver, you must select to install support for Measurement Studio.  Reference KnowledgeBase 3CHC5G5B: VISA and GPIB Application Development Using C# or VB.NET for additional assistance installing 488.2 support for C# and VB.NET. 

Related Links:
KnowledgeBase 3CHC5G5B: VISA and GPIB Application Development Using C# or VB.NET

Products and Services: GPIB(IEEE 488) Solutions
National Instruments VISA


Attachments:





Report Date: 12/13/2007
Last Updated: 12/28/2007
Document ID: 4GCFDJQX

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit