Reads the value of the specified block.
Syntax
ReadValue[DataPoint], [intErrorMode]
Properties
The ReadValue subroutine syntax has these parts:
Part |
Description |
DataPoint |
String. (Optional). The database block that you want to read. If no block is specified, the data source associated with the selected object is read. |
intErrorMode |
Integer. (Optional). The error mode. 1 – Allows the user to handle the error messages. Errors in the subroutines are passed back to the calling routine for handling. 2 – 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. To view your enabled alarm destinations, open the System Configuration Utility (SCU.EXE) and on the Configure menu, click Alarm. The Alarm Configuration dialog box appears where you can access this information. |
Return Value
ReadValue returns the value of the specified block.