Programming With Microsoft .Net And Visa; Location Of Header Files - Keysight N9000A Manual

Signal analyzers
Hide thumbs Also See for N9000A:
Table of Contents

Advertisement

Developing and Deploying VISA Projects

Programming with Microsoft .NET and VISA

or
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Lib_x64
For more details, see the VISA online Help section "VISA Directories", in the
Keysight VISA
Help.
Programming with Microsoft .NET and VISA
The
IVI Foundation
defines the standard visa.h header file for use in C and C++, which provides declarations for the
visa32.dll C DLL. This header file is distributed by Keysight Technologies, among others. The Foundation also defines
header file visa32.bas for Microsoft Visual Basic 6. However, there are at present no officially defined header files for
programming with the VISA C API in the Microsoft .NET technology languages, such as C# and Visual Basic.NET.
Therefore, Keysight has defined and developed the redistributable .NET header files visa32.cs (for C#) and visa32.vb
(for Visual Basic.NET), to allow programmatic access to the VISA C API from the two most popular .NET languages. To use
the VISA C API in a .NET project, include the appropriate file in your project. The compiled .NET assembly will then have
all the information it needs to use the VISA C Library (visa32.dll or visa64.dll).
For programmers accustomed to the VISA-C API, or those not familiar with COM, use of Keysight's .NET header files may
offer a preferable approach, because it avoids the overhead of the VISA COM implementation and exposes VISA
functionality in a more familiar style.
VISA has specifications for API versions in C and COM, so there are two ways to work with VISA in your .NET applications:
via the wrapper already written by Keysight around the C library, or via the Visa COM Interop.

Location of Header Files

The header files visa32.cs and visa32.vb can be found in:
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\agvisa\include
or
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\include
For more details, see the VISA online Help section "Using the VISA C API in Microsoft .NET", in the
Keysight VISA
Help.
36

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

N9038aN9010aN9030aN9020a

Table of Contents