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

AVEVA™ Plant SCADA

IProcessAnalyst​.CopyToFile [Method]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Saves the data in the current viewable range for visible pens to the specified file.

Defined As

  • [VBA] CopyToFile(filename As String)

  • [Cicode] CopyToFile(STRING filename)

  • [C++] HRESULT CopyToClipBoard(BSTR filename)

Parameters

filename

[in] Indicates the name and path of the file that the data will be exported to.

Execution Result

If the function succeeds the return value will be Success. If the function does not succeed the return value will be GeneralFailure.

Remarks

The timestamp of each sample will be in local time defined by your computer. The start and end sample maybe generated for each pen to indicate the exported range of the data.

Calling Syntax

Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".

[VBA]

Sub Example()
myPage_AN35.CopyToFile "test.xls"
End Sub

[Cicode]

Sub Example()
OBJECT hProcessAnalyst = ObjectByName("AN35");
_ObjectCallMethod(hProcessAnalyst, "CopyToFile", "test.xls");
End Sub

See Also

IProcessAnalyst.CopyToClipboard [Method]

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