Al_getclockstruct – Measurement Computing ADLIB WIN User Manual

Page 81

Advertising
background image

Chapter 21 Clocking Modes

20-5

20.5 AL_GetClockStruct

Prototype

C\C++

ERRNUM

AL_GetClockStruct(LHLD

lhld, LPCLK lpclkStruct);


Visual Basic for Windows

Function

AL_GetClockStruct(ByVal

lhld As Long, lpclkStruct As CLOCK) As Long

LHLD lhld

handle of the LDSD

LPTRIG lpclkStruct

address of the user clock structure


The AL_GetClockStruct function provides access to all LDSD clock settings.

Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


lpclkStruct

Specifies a 32 bit far pointer to a clocking information structure. This structure

has been pre-defined in the ADLIB include file and is defined as follows:


typedef struct tagCLOCK
{
char

achClkSourceName[MAX_OPTIONS_NAME_STRING];

long

lClkSourceId;


char

achClkSrcSignalName[MAX_OPTIONS_NAME_STRING];

long

lClkSrcSignalId;


double

dClkRate;

long

lClkRateUnits;


}CLOCK;
typedef CLOCK FAR * LPCLK;

Returns:
On success ERRNUM is set to 1 and the lpclkStruct structure is filled with the device's clocking settings,
otherwise ERRNUM contains the last error code that occurred during the call and the lpclkStruct structure
may contain invalid information.

Related Functions:
AL_SetClockSource
AL_SetClockRate
AL_GetActualClkRate
AL_MaxClkRate

Supported Logical Device Subsystems:
Pci55xx Series: ADC0, DAC0, DAC1

Advertising