AioGetReferenceClockType


Function

Retrieves the reference clock type.

Format

Ret = AioGetReferenceClockType ( Id , ReferenceClockType )

Parameters

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

ReferenceClockType [ C, C++: unsigned short * ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]
Retrieves the reference clock type.

Return value

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

Return values

Content

0

Normality completion

10001

Invalid Id was specified
Use the Id retrieved from AioInit to specify the Id in this function.

10002

AIO driver can't be called
At first, perform AioInit function.

10470

Pointer to ReferenceClockType is NULL

20001

This function can't be used by this device

Initial value

Internal reference clock (ReferenceClockType = AIO_PARAM_AI_REF_CLK_TYPE_INT)

Remarks

Retrieves the reference clock type.

Example

Retrieves the reference clock type.

C, C++

long Ret;
unsigned short ReferenceClockType;
Ret = AioGetReferenceClockType ( Id , &ReferenceClockType );  
 

Python

Ret = ctypes.c_long()
ReferenceClockType = ctypes.c_ushort()
Ret.value = caio.AioGetReferenceClockType ( Id , ctypes.byref(ReferenceClockType) )
 

See also

AioSetReferenceClockType