Al_getctrmode – Measurement Computing ADLIB WIN User Manual
Page 118

Chapter 38 Counter Modes
26-2
26.2 AL_GetCtrMode
Prototype
C\C++
ERRNUM
AL_GetCtrMode(LHLD
lhld, LPSTR lpstrCtrMode, long lMaxlen);
Visual Basic for Windows
Function
AL_GetCtrMode(ByVal
lhld As Long, ByVal lpstrCtrMode As String,
ByVal lMaxlen As Long) As Long
LHLD lhld
handle of the LDSD
LPSTR lpstrCtrMode
destination address of the Counter/Timer mode string
long lMaxLength
the count in bytes to be copied
The AL_GetDataCode function retrieves the current Counter/Timer modeof the LDSD.
Parameter
Description
lhld
Identifies the instance of the logical device subsystem.
lpstrCtrMode
Points to the destination string for the copy.
lMaxLength
Maximum length in bytes to be copied to the user string , including the
NULL termination character.
Returns:
On success ERRNUM is set to 1 and the destination string lpstrCtrMode is set to the LDSD Counter/Timer
mode, otherwise ERRNUM contains the last error code that occurred during the call and the destination
string is considered invalid.
Related Functions:
AL_SetCtrMode
AL_CounterIn
AL_CounterOut
Supported Logical Device Subsystems:
Pci55xx
Series:
CTR0,
CTR1,
CTR2,
CTR3
Note that CTR0, CTR1 Counters are referenced in the user manual as CNTR0/1 and
Timers CTR2, CTR3 are referenced in the user manual as TMR0/1.