SsiGetCorrection


Function

Get the currently set correction value.

Format

Ret = SsiGetCorrection ( Id , ChannelNo , &CorrectionSlope , &CorrectionOffset )

Parameters

Id [ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from SsiInit.

ChannelNo [ C, C++: short ] [ Python: ctypes.c_short ]
Specify the channel number.

CorrectionSlope [ C, C++: float * ] [ Python: ctypes.POINTER(ctypes.c_float) ]
Specify the address of the variable that stores the correction slope.

CorrectionOffset [ C, C++: float * ] [ Python: ctypes.POINTER(ctypes.c_float) ]
Specify the address of the variable that stores the correction offset.

Return Value

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

Definition

Value

[Dec]

Description

SSI_ERR_SUCCESS

0

Succeeded

SSI_ERR_DLL_INVALID_ID

10001

Invalid device id.

SSI_ERR_DLL_CALL_DRIVER

10002

Can not call driver (ioctl failed).

SSI_ERR_DLL_BUFF_ADDRESS

10100

Invalid data buffer address.

SSI_ERR_SYS_NOT_SUPPORTED

20001

Function is not supported for this device.

SSI_ERR_SYS_CH_NO

20100

Channel No. is outside the setting range.

SSI_ERR_SYS_DISABLE_CH

20104

Disabled channel number.

The others (See also: Details of Error Code)

Remarks

Get the currently set correction value.

Example

Get the correction value for 1ch.

C, C++

long Ret;
float CorrectionSlope;
float CorrectionOffset;
Ret = SsiGetCorrection(Id, 1 , &CorrectionSlope, &CorrectionOffset);
 

Python

Ret = ctypes.c_long()

CorrectionSlope = ctypes.c_float()

CorrectionOffset = ctypes.c_float()

Ret = cssi.SsiGetCorrection(Id, 1 , ctypes.byref(CorrectionSlope) , ctypes.byref(CorrectionOffset)

 

See Also

SsiSetCorrection