TBApiGetCalibrationStyle API Call

 

Description

Get the calibration style details for the specified device & style.

Parameters

Device handle, a handle representing the style and a pointer to a Calibration Style structure for storage of style details.

Returns

0 = fail, 1 = OK

Notes

None

See also

Other calibration related API calls.

 

Visual C++ Declaration/example

 

BOOL TBAPI TBApiGetCalibrationStyle(HTBDEVICE aDeviceHandle, HTBSTYLE aHStyle, _CalStyle* aStyle);

 

TCHAR _styleName[32];

 

// Get the active calibration style handle

HTBSTYLE hStyle = TBApiGetCalibrationStyleByName(aDeviceHandle, _styleName);

if(hStyle < 0)

{

            _CalStyle style;

            TBApiGetCalibrationStyle(aDeviceHandle, hStyle, &style);

}

 

Visual Basic Declaration/example

 

Public Declare Function TBApiGetCalibrationStyle Lib "TBapi" Alias “_DLL_TBApiGetCalibrationStyle@12" (ByVal aDeviceHandle As Byte, ByVal aHStyle As Long, ByVal aStyle As Long) As Long

 

Dim cs As CalStyle

Dim StyleName As String * 32

Dim hStyle As Long

Dim addrStyle As Long

addrStyle = StrPtr(StyleName)

 

hStyle = TBApiGetCalibrationStyleByName(aDeviceHandle, addrStyle)

If hStyle < 0 Then

    addrStyle = VarPtr(cs)

    TBApiGetCalibrationStyle hStyle, aDeviceHandle, addrStyle

End If