AioSetReferenceClockType


Function

Sets the reference clock type.

Format

Ret = AioSetReferenceClockType ( 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.c_ushort ]
Sets the reference clock type.

Clock type

Macro

Value [dec]

Internal reference clock

AIO_PARAM_REF_CLK_TYPE_INT

0

External reference clock

AIO_PARAM_REF_CLK_TYPE_EXT

1

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.

20460

The value of ReferenceClockType is outside the designated range of the device being used

Initial value

Internal reference clock (ReferenceClockType = AIO_PARAM_AI_REF_CLK_TYPE_INT)

Remarks

Sets the reference clock type.

Example

Sets the reference clock type to external reference clock.

C, C++

long Ret;
Ret = AioSetReferenceClockType ( Id , AIO_PARAM_AI_REF_CLK_TYPE_EXT );  
 

Python

Ret = ctypes.c_long()
Ret.value = caio.AioSetReferenceClockType ( Id , caio.AIO_PARAM_AI_REF_CLK_TYPE_EXT )
 

See also

AioGetReferenceClockType