GetModel
Get the model of the current instrument or the instrument that is simulated.
Syntax
Section titled “Syntax”virtual CString GetModel() const abstract;Return value
Section titled “Return value”Returns the current instrument model.
Remarks
Section titled “Remarks”The value returned by this function is established by implementation of the InitializeIdentification function. By default, that function parses the *IDN? result to retrieve detailed information about the connected instrument.
Example
Section titled “Example”The following example demonstrates use of the GetModel function.
HRESULT Acme4321::Configure(){ HRESULT hr = S_OK;
// This method is NOT supported by the models that end with "B" CString strModel = GetModel(); if (strModel.Right(1) == _T("B")) return err.ModelNotSupported(strModel);
hr = InstrPrintCommand();
return hr;}