04-14-2007 02:46 PM
04-19-2007 04:46 PM
04-20-2007 10:19 AM
Meghan,
Thanks for the info. My point of confusion is still this. With VisaCom you don't have to include the specific National Common file like you do with VisaNS or NI488.2. It seems that the Common assembly would be specific to NI cards. Is that correct?
Brian
04-23-2007 06:28 PM
08-20-2007 06:45 PM
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 SubEnd
ClassTo use with NI card....
1) Install .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 an Agilent gpib card....
1) Install Agilent Suite io 14.2 Most of the stuff is junk and can be removed (IVI etc)
2) Use the Agilent Visa as the primary visa
3) Go to add/remove programs and National. Install the TULIP support under Runtime Support.
The beauty of the NI VISANS is that with only about 1 line of code change one can use LAN, GPIB (VISA OR NI.4882) or serial. It is so much simplier than then VISA or VISA-COM.