TTLInput

Stg_DIOReadInputs, Stg_GetLineIndex, Stg_GetTTLStatus, Stg_TTLInputRead

Stg_DIOReadInputs

Description 

 Stg_DIOReadInputs(
   int64 *LpStatusArray
);

Creates an overview of all input lines and their statuses.

Parameters

int64 *LpStatusArray

Line statuses array.

Stg_GetLineIndex

Description 

 Stg_GetLineIndex(
   char *LpLineName
);

This function converts the line name set by the user to the index name of the line. The index name is used by other functions.

Parameters

char *LpLineName

Name of the line.

Stg_GetTTLStatus

Description 

 Stg_GetTTLStatus(
   int  LineIndex,
   int *LpLineStatus
);

This function returns the status of the selected TTL line.

Parameters

int LineIndex

Index number of the TTL (or analog) line.

int *LpLineStatus

Pointer to the line status.

0

low state

1

high state

Return Values

0

low state

1

high state

Stg_TTLInputRead

Description 

int Stg_TTLInputRead(
   char *TTLInputName
);

This function retrieves the current state of the specified TTL input line.

Parameters

char *TTLInputName

TTL input line name specified within the device manager.

Return Values

int

The TTL input line state

0

low

1

high