Set the correction value.
Ret = ZmSetCorrectionValue ( Id , ChannelNo , Type , CorrectionValue1 , CorrectionValue1 , Format )
Id
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from ZmInit.
ChannelNo
[ VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ] [ Python: ctypes.c_ushort ]
Specify the channel number.
Type [
VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ] [ Python: ctypes.c_ushort ]
Specify the correction type.
Definition |
Value |
Description |
ZM_CORRECTION_TYPE_OPEN |
0 |
Correction type Open |
ZM_CORRECTION_TYPE_SHORT |
1 |
Correction type Short |
CorrectionValue1
[ VB.NET: Single ] [ C, C++: float ] [ C#: float ] [ Python: ctypes.c_float ]
Specify the correction value 1.
CorrectionValue2
[ VB.NET: Single ] [ C, C++: float ] [ C#: float ] [ Python: ctypes.c_float ]
Specify the correction value 2.
Format [
VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ] [ Python: ctypes.c_ushort ]
Specify the correction value format.
Type |
Definition |
Value |
Description |
Open |
ZM_CORRECTION_FORMAT_OPEN_GB |
1 |
G,B |
Short |
ZM_CORRECTION_FORMAT_SHORT_RX |
1 |
Rs,X |
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
Definition |
Value |
Description |
ZM_ERR_SUCCESS |
0 |
Normality completion |
ZM_ERR_SYS_CHANNEL_NO |
20100 |
Channel No is out of the settable range. |
ZM_ERR_SYS_TYPE |
20108 |
Type is out of the settable range. |
ZM_ERR_SYS_FORMAT |
20113 |
Format is out of the settable range. |
The others (See also: Details of Error Code)
Correction value 1 (CorrectionValue1) = 0
Correction value 2 (CorrectionValue2) = 0
Set the correction value.
Correction value can be set for each channel.
The correction value is set based on the
current conditions
for the correction.
If the conditions
for the correction are changed, please set the correction value again.
The correction value is retained, so once the conditions for the correction have been set, there is no need to set correction value again.
For details about correction, please refer to the glossary "Correction".
When ChannelNo = 1 is "0 : Correction type Open" and correction value format is "1 : G,B", set "Correction value 1 = 10.0" and "Correction value 2 = 50.0".
VB.NET |
Dim Ret As Integer |
C, C++ |
long Ret; |
C# |
int Ret; |
Python |
Ret = ctypes.c_long() |
ZmCorrection ZmGetCorrectionEnable ZmSetCorrectionEnable ZmGetCorrectionValue