11 latch – ADLINK PCI-8124-C User Manual

Page 92

Advertising
background image

82

Function Library

6.11 Latch

@ Name

@ Description

_8124_set_latch:

This function is used to enable or disable the high-speed posi-
tion capture (latch) function and set the latch condition. When-
ever the users enable it and configure the latch condition
(Rising or falling active) correctly, the current position will be
latched when it receive the latch signal. Users can check the
latch events by polling “_8124_get_latch_event_sts” or by
using the interrupt function. See also section 5.13 Interrupt
function.

_8124_get_latch_event_sts:

This function is used to check the latch event status. If the latch
function is enabled and the latch condition is met, the status
will become 1 from 0. The event status is read-clear.

_8124_get_latch_value:

When the latch event occurred, you can use this function get
the latched counter value.

@ Syntax

C/C++ (Windows 2000/XP)

I16 _8124_set_latch( I16 CardId, I16 Channel, I16

Enable, I16 EdgeSel );

I16 _8124_get_latch_event_sts( I16 CardId, I16

*LatchEventInBit );

I16 _8124_get_latch_value(I16 CardId, I16

Channel, I32 *LatchValue );

_8124_set_latch

Configure the latch function

_8124_get_latch_event_sts

Get the latch event status

_8124_get_latch_value

Get the latched value

Advertising