system.iec61850.writeFile
New in 8.1.25
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 | Remote file path on server of the file to read. |
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)