Hi,
On looking at the examples provided in the documentation of the Power supply. The Programming has been done by adding two libraries AgilentRMLib and VisComLib in the C#. When
i try to add the AgilentRMLib by Selecting the Add Reference->Agilent VISA COM Resourse Manager 1.0, an error is shown at the reference.
I tried adding the agtRM.dll directly from the Program Files. Still the error persists. Has anyone faced this problem before? Any Solutions for this?
Thanks,
Muralidharan
On looking at the examples provided in the documentation of the Power supply. The Programming has been done by adding two libraries AgilentRMLib and VisComLib in the C#. When
i try to add the AgilentRMLib by Selecting the Add Reference->Agilent VISA COM Resourse Manager 1.0, an error is shown at the reference.
I tried adding the agtRM.dll directly from the Program Files. Still the error persists. Has anyone faced this problem before? Any Solutions for this?
Thanks,
Muralidharan
You should do the following instead:
1) In Add References, choose the COM tab, then choose the VISA COM 3.0 Type Library
2) In C# I would recommend that you add a
*using Ivi.Visa.Interop;*
That is the namespace for VISA COM.
Then, to use VISA COM create a new Ivi.Visa.Interop.ResourceManager and a new Ivi.Visa.Interop.FormattedIO488
To open a connection, use
*ResourceManager rm = new ResourceManager();*
*FormattedIO488 fmio = new FormattedIO488();*
*fmio.IO = (IMessage)rm.Open(<VISA address goes here, AccessMode.NO_LOCK, 0, "");*
Then, when you're all done sending I/O, don't forget to close the session using
*fmio.IO.Close();*
Edited by: hognala on Sep 13, 2012 3:43 PM