Chapter 4
Developing with Measurement Studio
Measurement Studio User Manual
4-10
ni.com
Calling Instrument Drivers from .NET Languages
To use an IVI or VXI
plug&play
instrument driver with a C DLL in a
Measurement Studio .NET application, use the Measurement Studio .NET
Instrument Driver wizard to create .NET entry points to the C DLL
functions you need to call from your application. Use the Add New Item
wizard to select the .NET Instrument Driver Wizard.
The Measurement Studio .NET Instrument Driver wizard, as shown in
Figure 4-6, generates a .NET wrapper class for calling into IVI,
VXI
plug&play
, and legacy instrument drivers based on the instrument
driver function panel, header file, and an optional
.sub
file for IVI drivers.
The wizard can generate both Visual C# and Visual Basic .NET source
code. After completing the wizard, a new instrument driver wrapper class
is added to your project and opened in the source code editor.
Figure 4-6.
Launching the Measurement Studio .NET Instrument Driver Wizard from
the Add New Item Wizard
Tip
For more information about the .NET instrument driver wizard, refer to the
Using
Instrument Drivers in Measurement Studio Applications
section in the
NI Measurement
Studio Help
.