AnsweredAssumed Answered

VISANS (Visa NameSpace) from NI

Question asked by on Apr 7, 2007
Latest reply on Apr 7, 2007 by odanzy
It is possible to use Agilent or NI GPIB cards with NI’s VisaNS (Visa Namespace) in Visual Studio .net

For example,

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim pna As New NationalInstruments.VisaNS.GpibInterface("GPIB0::16", NationalInstruments.VisaNS.AccessModes.NoLock, 5000, False) 'this line can be changed to do 488.2, LAN, Serial, USB etc etc.

pna.write("*IDN?;" & vbCrLf)

TextBox1.Text = pna.ReadString

End Sub

End Class


To use NI’s VisaNs with an NI gpib card....

1) Install NI .net visa 2.0 languages Support under NI measurement and Automation & Development support

2) Install GPIB under runtime support DO NOT INSTALL TULIP.


To use NI’s VisaNS with an Agilent gpib card....

1) Install Agilent Suite io 14.2 after installing NI driver.

2) Use the Agilent Visa as the primary visa

3) Go to add/remove programs and NI. Install the TULIP support under Runtime Support.