Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA and Visual Basic .NET

Hello,

What reference should I add to my visual basic .NET project to get the VISA type declaration (ViSession, ....)

Regards,
Yannick Willener
0 Kudos
Message 1 of 2
(2,886 Views)
Hello Yannick,
the VisaNS .NET API doesn't use the VISA C type declarations like ViSession, ViInt32, etc. Instead, it uses the corresponding .NET native types in its API, like System.Int32, System.Int16, and System.IntPtr. handles of type ViSession are typically represented by instance of Session Objects, such as GpibSession or SerialSession. In order to use VisaNS in a .NET application, you will need a reference to the NationalInstruments.VisaNS.dll and NationalInstruments.Common.dll assemblies. If you have Measurement Studio installed, the Measurement Studio Project wizards can add these references for you automatically.
0 Kudos
Message 2 of 2
(2,879 Views)