system.iec61850.writeFile
This function is used in Python Scripting.
Descriptionβ
This function uploads a file from a local path to the configured IEC 61850 device remote path.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.iec61850.writeFile(deviceName, localFilePath, remoteFilePath)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | deviceName | The name of the configured IEC 61850 device. |
| String | localFilePath | The local file path on client to pull the file contents from. |
| String | remoteFilePath | The remote file path on the server of the file to write to. |
Returnsβ
No return value.
Scopeβ
Gateway, Perspective Session
Code Examplesβ
Example #1
# This example writes the file contents
# from the local temporary path to the remote file path.
device_name = 'IEC61850'
file_name = 'COMFEDE.ced'
tmp_path = '/usr/local/bin/ignition/COMFEDE/{0}'.format(file_name)
file_path = '/{0}'.format(file_name)
system.iec61850.writeFile(device_name, tmp_path, file_path)