|| 3 out of 5
Where is the .NET GPIB Language Interface?
Primary Software Version:
Primary Software Fixed Version:
Where can I find the .NET GPIB Language Interface?
National Instruments provides two interfaces for developing GPIB-based applications in Visual Studio .NET: (a) the native .NET API and (b) the NI-488.2 wrapper interface. We recommend the native .NET API as the preferred method of developing GPIB .NET applications because of its superior integration. Both require Microsoft Visual Studio .NET 2003 or later.
While both interfaces expose NI-488.2 as a .NET assembly, some key differences exist.
The native .NET API is available on the NI Device Driver CD (August 2003 and later) that ships with NI hardware, and the native .NET API may also be downloaded from the related link below. This interface has the following characteristics:
- Automatic re-synchronization of asynchronous I/O
- Includes exception handling and returns descriptive error messages for each exception
- Uses Long names for methods
- Supports security, remoting, marshalling and other .NET concepts
- Classes exposed through this assembly follow the .NET class framework standards (Names, Events, Remoting, Security, etc)
- Contains documentation that conforms to Visual Studio documentation standards
- Uses a separate class for Board, Device calls (exposes all functionality of NI-488.2 including notify, plus Events)
- Exposes .NET events for data completion
- Uses properties of a class to set the configuration options of Board or Device objects (Follows .NET class library model)
- Some classes derive from .NET class framework (This exposes the assembly in ways similar to the .NET class library exposed assemblies)
- Enumeration classes are used instead of error code numbers
- Includes overloaded methods
Measurement Studio 7.0 ships with the driver CD that contains native .NET assemblies for both VISA and GPIB. Developers can use the NI Instrument I/O Assistant, which integrates into Visual Studio .NET as a code designer. Its user interface can be used to first create and configure instrumentation tasks, then generate a Visual Basic .NET, Visual C#, or Visual C++ class that includes the functionality you configure in the user interface. For more information about using the NI Instrument I/O Assistant to create a Measurement Studio 488.2 or VISA application, refer to the Creating a Measurement Studio 488.2
or VISA Application
section of the NI Measurement Studio Help
You can load the NI-488.2 .NET wrapper from the NI-488.2 Driver CD version 2.2 until 2.4. The NI-488.2 .NET wrapper (see the KnowledgeBase linked below) has the following characteristics:
- Does not return exceptions as users use error codes to handle errors
- One-to-one name mapping to NI-488.2 API (ibfind, ibdev, etc.)
You may refer to the NI Measurement Studio Help for more information.
Related Links: FTP Download: Native .NET GPIB Language Interface KnowledgeBase 37FI67YF: NI-488.2 .NET Wrapper Language Interface