Al_setclockrate – Measurement Computing ADLIB WIN User Manual
Page 78

Chapter 21 Clocking Modes
20-2
20.2 AL_SetClockRate
Prototype
C\C++
ERRNUM
AL_SetClockRate(LHLD
lhld, double dRate, long lUnits);
Visual Basic for Windows
Function
AL_SetClockRate(ByVal
lhld As Long, ByVal dRate As Double,
ByVal lUnits As Long) As Long
LHLD lhld
handle of the LDSD
double dRate
specifies the rate of the clock
long lUnits
specifies the rate units
The AL_SetClockRate function sets the hardware clocking rate of the LDSD.
Parameter
Description
lhld
Identifies the instance of the logical device subsystem.
dRate
Specifies the rate at which a clocking will occur.
lUnits
Sets the units in which the above rate parameter is specified. The available
settings are defined as AL_HERTZ.
Returns:
On success ERRNUM is set to 1, otherwise ERRNUM contains the last error code that occurred during the
call.
Related Functions:
AL_SetClockSource
AL_GetActualClkRate
AL_MaxClkRate
AL_GetClockStruct
Supported Logical Device Subsystems:
Pci5500, 5501, 5502: ADC0, Options:
0.23283e-3 to 100000
Pci5500, 5501, 5502: DAC0, DAC1, Options:
0.23283e -3 to 200000
Pci5503, 5504: ADC0, Options:
0.23283e -3 to 200000
Pci5503, 5504, DAC0, DAC1, Options:
0.23283e -3 to 200000