Skip to main content
Version: 8.1

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

TypeParameterDescription
StringdeviceNameThe name of the configured IEC 61850 device.
StringlocalFilePathThe local file path on client to pull the file contents from.
StringremoteFilePathRemote 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)

Keywords

system iec61850 writeFile system.iec61850.writeFile