FetchLimits Subroutine

Returns the High and Low EGUs of the specified data source.

Syntax

FetchLimitsDataSource, HiLimit, LoLimit, ret, [intErrorMode]

Properties

The FetchLimits subroutine syntax has these parts:

Part

Description

DataSource

String. The string name for the data source. For example, FIX32.MYNODE.AI1.F_CV

HiLimit

Single. Returns the high EGU limit for the data source.

LoLimit

Single. Returns the low EGU limit for the data source.

ret

Integer. Returns the status of the call:
0 = Successful
1 = Syntax error
2 = Data source does not exist
3 = Data type mismatch

intErrorMode

Integer. (Optional). The error mode.
0 (default) – Allows the subroutines to provide the error messages. Errors are displayed in the form of a message box. If no entry is made for the intErrorMode parameter, the default is used.

1 – Allows the user to handle the error messages. Errors in the subroutines are passed back to the calling routine for handling.

3 – Writes errors to all destinations. No error messages display. Instead, the errors are written to all iFIX destinations, including the Alarm History window destinations using SendOperatorMessage.

 

Example