Al_gettriggerstruct – Measurement Computing ADLIB WIN User Manual
Page 74

Chapter 20 Triggering Modes
19-6
19.5 AL_GetTriggerStruct
Prototype
C\C++
ERRNUM
AL_GetTriggerStruct(LHLD
lhld, LPTRIG lptrigStruct);
Visual Basic for Windows
Function
AL_GetTriggerStruct(ByVal
lhld As Long,
lptrigStruct As TRIGGER) As Long
LHLD lhld
handle of the LDSD
LPTRIG lptrigStruct
address of the user trigger structure
The AL_GetTriggerStruct function provides access to all LDSD trigger settings.
Parameter
Description
lhld
Identifies the instance of the logical device subsystem.
lptrigStruct
Specifies a 32 bit far pointer to a trigger information structure. This structure
has
been pre-defined in the ADLIB include file and is defined as follows:
typedef struct tagTRIGGER
{
char
achTrigModeName[MAX_OPTIONS_NAME_STRING];
long
lTrigModeId;
char
achTrigSrcName[MAX_OPTIONS_NAME_STRING];
long
lTrigSrcId;
char
achTrigSrcSignalName[MAX_OPTIONS_NAME_STRING];
long
lTrigSrcSignalId;
long
lTrigRateUnits;
double
dTrigRate;
long
lPostSampleCount;
}TRIGGER;
typedef TRIGGER FAR * LPTRIG;
Returns:
On success ERRNUM is set to 1 and the lptrigStruct structure is filled with the device's triggering settings,
otherwise ERRNUM contains the last error code that occurred during the call and the lptrigStruct structure
may contain invalid information.
Related Functions:
AL_SetTriggerMode
AL_SetTriggerSource
AL_SetTrigSourceSignal
AL_SetPostSampleCount
AL_SetTriggerOutput
AL_GetTriggerOutput
Supported Logical Device Subsystems:
Pci55xx Series: ADC0, DAC0