Function
Gets Z phase mode. (Not use/1 time/Every time)
Format
Ret = CntGetZMode ( Id , ChNo , Mode )
Parameters
Id
[ C: short ] [ Python: ctypes.c_short ]
Specifies the device ID retrieved from CntInit.
ChNo [ C: short ] [ Python: ctypes.c_short
]
Specifies the channel number which you want to set.
Mode
[ C: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specifies the address of the variable that stores the Z phase mode. As
for Z phase mode, one of the following defined values is returned.
Definition |
Value |
Description |
CNT_ZPHASE_NOT_USE |
1 |
Not use |
CNT_ZPHASE_NEXT_ONE |
2 |
Next one time |
CNT_ZPHASE_EVERY_TIME |
3 |
Every Time |
Return Value
Ret [ C: long ] [ Python: ctypes.c_long ]
Definition |
Value |
Description |
CNT_ERR_SUCCESS |
0 |
Normal Complete |
CNT_ERR_DLL_INVALID_ID |
10001 |
Invalid ID is specified. |
CNT_ERR_DLL_CALL_DRIVER |
10002 |
Driver cannot be called (failed in ioctl). |
CNT_ERR_SYS_CH_NO |
20201 |
Channel number is outside the range. |
The other errors: (See also: Details of Error Code)
Initial Value
Not use Z phase
Remarks
Get the Z phase mode for the specified channel.
Example
C |
Ret
= CntGetZMode(Id, ChNo, &Mode); |
Python |
Ret
= ccnt.CntGetZMode(Id, ChNo, ctypes.byref(Mode)) |
See Also