I am using the MAKEMID command to generate a MATLAB Instrument Driver (MDD) as follows:
makemid('AgilentRfSigGen.AgilentRfSigGen','AgilentRfSigGen','ivi-com','IIviRFSigGen')
Once I generate the MDD file, I create a device object in the MATLAB workspace and I inspect this object using the METHODS function:
>> deviceObj = icdevice('AgilentRfSigGen.mdd','visaAlias') Instrument Device Object Using Driver : AgilentRfSigGen.mdd Instrument Information Type: IIviRFSigGen Manufacturer: Manufacturer Model: Model Driver Information DriverType: MATLAB IVI DriverName: AgilentRfSigGen.mdd DriverVersion: 1.0 Communication State Status: closed>> connect(deviceObj)>> methods(deviceObj)Methods for class icdevice:... ctranspose horzcat invoke propinfo delete icdevice isa selftest devicereset igetfield isequal set ...
One of the methods listed here is the SELFTEST method. However, when I try to invoke this method:
selftest(deviceObj)
I receive the following error message:
??? Error using ==> icdevice.selftest at 25 The call to the driver selftest method failed. Use MIDEDIT to update the driver if appropriate.
Best Answer