3.5.4. EVENT SIGNAL

#

Brief

Description

Name

Arguments (in C

Syntax)

Full Description

18

Set Source of

SetEncoderEventFlag

(long CardHandle,

 

Selects a condition that becomes the trigger of the Event Signal.

 

Encoder's

Source

short EncoderNumber,

 

Upon meeting this condition, an Event Signal is supplied, both in

 

EventFlag

 

short EventFlagSource)

 

hardware and in software.

 

 

 

 

 

Note:

 

 

 

 

 

The

characteristics of the signal are different in software and in

 

 

 

 

 

hardware:

 

 

 

 

 

* The polarity and the "hold mode" of the hardware signal are

 

 

 

 

 

programmable (see functions #20–23).

 

 

 

 

 

* The polarity of the software signal is constant.

 

 

 

 

 

* The software signal is always held until activating the function

 

 

 

 

 

ReadInputs (refer to section 3.4.2, function #8), which reads

 

 

 

 

 

the current signal status and then automatically clears it.

19

Get Source of

GetEncoderEventFlag

(long CardHandle,

 

Gets the current selection of the Source of Encoder's EventFlag.

 

Encoder's

Source

short EncoderNumber,

 

 

 

 

EventFlag

 

short* EventFlagSource)

 

 

 

20

Set Polarity of

SetEncoderEventFlag

(long CardHandle,

 

Sets the polarity of the hardware Event Signal.

 

Hardware

Polarity

short EncoderNumber,

 

 

 

 

Encoder's

 

short Polarity).

 

 

 

 

EventFlag

 

 

 

 

 

21

Get Polarity of

GetEncoderEventFlag

(long CardHandle,

 

Gets the current status of the Encoder's EventFlag Polarity (active

 

Hardware

Polarity

short EncoderNumber,

 

on high/low).

 

Encoder's

 

short* Polarity)

 

 

 

 

EventFlag

 

 

 

 

 

Note: The description of the common arguments is in section 3.6

20

Page 22
Image 22
Omega Engineering EN-EIC-325-PCI manual SetEncoderEventFlag, Source, GetEncoderEventFlag, Polarity