May I use C# to access agilent VISA?

  • Thread starter Thread starter littertiger
  • Start date Start date
littertiger,

You probably can. How would you access it without C#?
 
Hi LitterTiger,

You can download a Visual Basic.NET adapter class from Agilent
Technologies' "Agilent Developer Network" site via this link:
http://adn.tm.agilent.com/index.cgi?CONTENT_ID=1921

You need a free account to get the file. Once you have it you can
create a .NET assembly from it and use it in C#. You don't get
formatted I/O functions, viPrintf, viScanf, etc because those require
more work to translate to .NET than a simple adapter class.

Alternatively, you can use an implementation of VISA COM I/O in .NET
by using the COM to .NET interop assembly generation capabilities.
There is a paper on how to do this on ADN at:
http://adn.tm.agilent.com/index.cgi?CONTENT_ID=1324

You can get a VISA COM implementation from Agilent on ADN in the M
release of its "Agilent I/O Libraries" software package if you own
Agilent I/O hardware or are using VISA COM to talk to Agilent or older
Hewlett Packard hardware. National Instruments also has a VISA COM
I/O implementation.

Sincerely,

Dave Gladfelter
 
Back
Top