Hello fivealive,
If you would like to use the Class Driver for the class functions and Specific Driver for the Instrument Specific Capabilities, you will need to generate a wrapper for the specific driver and add another specific driver constructor that passes through the instrument specific handle returned by the Class Driver function "GetSpecificDriverCHandle".
Here is an example of the new constructor:
public agn6700(System.IntPtr driverSpecificHandle)
{
this._handle = driverSpecificHandle;
}
Here is my simple example:
IviDCPwr power = new IviDCPwr("DCPower", true, true);
IntPtr driverHandle = new IntPtr();
power.GetSpecificDriverCHandle(out driverHandle);
agn6700 agn = new agn6700(driverHandle);
This downcasting is done automatically in LabVIEW when you use the Class and Specific driver wrapper VIs.
Just let me know if you have anymore questions,
NathanT