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

AVEVA™ Plant SCADA

DevCurr

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the current device handle. You can only call this function in a report, to get the handle of the device where the report is logging. You can then use the other device functions (for example, DevPrint) to access that logging device. (To get the handle of a device other than a logging device, you need to use the DevOpen function.)

If the report is logging to a group of devices, this function will return the group handle. However, not all device functions support group handles, for example, you cannot read from a group of devices.

Syntax

DevCurr()

Return Value

The current device handle or group handle.

If no device is configured, -1 is returned.

DevOpen, DevPrint

Example

! Get the report device number.
hDev=DevCurr();

See Also

Device Functions

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