Text preview for : AgMD2 Driver_252C Software Migration Note M9700-90007 c20130710 [7].pdf part of Agilent AgMD2 Driver_252C Software Migration Note M9700-90007 c20130710 [7] Agilent AgMD2 Driver_252C Software Migration Note M9700-90007 c20130710 [7].pdf



Back to : AgMD2 Driver_252C Softwar | Home

Agilent AgMD2 Driver, Software migration note
Introduction
The AgMD1 driver is compliant with both the IviDigitizer and IviScope class standards from the IVI Foundation. However,
support for the IviScope class as not been continued into the new AgMD2 driver. The methods and properties of the
IviScope class cannot be directly migrated from AgMD1 to AgMD2, and will require any existing code which uses this
class to be rewritten using the IviDigitizer class.
The following sections detail how to perform the migration for the AgMD1 API to the AgMD2 API in specific programming
languages:

C/C++ applications
1. In the project properties under 'Configuration Properties > Linker > Input', replace the additional dependency
'AgMD1.lib' by 'AgMD2.lib'.
2. In your code, replace the #include statement(s) with #include .
3. For each function call, replace the prefix:'AgMD1_' with 'AgMD2_'.
4. For each attribute name, error code, and enum value, replace the prefix:'AGMD1_' with 'AGMD2_'.
5. For certain functions, attributes, enum values, and repeated capability values you will need to refer to the tables
below to find an equivalent.

C# applications
1. From the Solution Explorer, under the project references, replace the 'AgMD1' reference by a reference to
'Agilent.AgMD2.Interop.dll'.
2. In your code, replace all occurrences of 'Agilent.AgMD1.Interop' with 'Agilent.AgMD2.Interop'.
3. Replace all occurrences of the class 'AgMD1' with 'AgMD2'.
4. Replace all interfaces prefixes: 'IAgMD1' with 'IAgMD2'.
5. Replace all unknown methods, properties, enum values, and repeated capability values by their AgMD2 equivalent
using the (IVI-C) tables below.

Visual Basic (VB) applications
1. From project properties under 'References', replace the reference to AgMD1 by a reference to
Agilent.AgMD2.Interop.
2. In the code, replace all occurrences of 'AgMD1' with 'AgMD2'.
3. Replace all unknown methods, properties, enum values, and repeated capability values by their AgMD2 equivalent
using the (IVI-C) tables below.

MATLAB applications
1. Replace the class of the driver instance: 'instrument.driver.AgMD1()' with
'instrument.driver.AgMD2()'.
2. Replace all unknown methods, properties, and repeated capability values by their AgMD2 equivalent using the (IVI-
C) tables below.




AgMD2 Migration Note