beautypg.com

Al_getcyclemode – Measurement Computing ADLIB WIN User Manual

Page 58

background image

Chapter 15 Logical Device Cycle Modes

14-2

14.2 AL_GetCycleMode

Prototype

C\C++

ERRNUM

AL_GetCycleMode(LHLD

lhld, LPSTR lpstrMode, long lMaxLength);


Visual Basic for Windows

Function

AL_GetCycleMode(ByVal

lhld As Long, ByVal lpstrMode As String,

ByVal lMaxLength As Long) As Long


LHLD
lhld

handle of the LDSD

LPSTR lpstrMode

destination address of the cycle mode string

long lMaxLength

the count in bytes to be copied


The AL_GetCycleMode function retrieves the current software cycle operation mode of the LDSD.

Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


lpstrMode

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 destination string lpstrMode is set to either AL_SINGLE_CYCLE or
AL_CONTINUOUS_CYCLE as defined in the ADLIB include file, otherwise ERRNUM contains the last
error code that occurred during the call and the destination string is considered invalid.

Related Functions:
AL_SetCycleMode

Supported Logical Device Subsystems:
Pci55xx Series: DIN0, DIN1, DIN2, DIN3, DOT0, DOT1, DOT2, DOT3
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.

Pci55xx Series: ADC0, DAC0, DAC1