Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DevEOF

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the status of the end of file (EOF) flag for a device. When you use the DevPrev, DevNext, or DevSeek function, the start or end of the device will eventually be reached, and the EOF flag will be set. Use this function to test the EOF flag.

Syntax

DevEOF(hDev)

hDev:

The device handle, returned from the DevOpen() function. The device handle identifies the table where all data on the associated device is stored.

Return Value

1 if the EOF flag has been set, otherwise 0 (zero).

DevOpen, DevPrev, DevNext, DevSeek, DevReadLn

Example

hDev = DevOpen("Log", 0);

WHILE NOT DevEOF(hDev) DO

Prompt(DevGetField(hDev,"Tag"));

DevNext(hDev);

END

DevClose(hDev);

See Also

Device Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in