Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

ExportIOsConfiguration

Group

Utilities

Description

Export a list of IOs configurations from a project into a file (*.rios)

Projects whose IOs are exported must be closed.

Required Control

None

Usage

RtlabApi.ExportIOsConfiguration(project_path_src, dir_path_to_export_ios='', filename='', io_list_name_to_export=[])

Input

  • project_path_src : Directory path to the project whose IOs are to be exported.
    dir_path_to_export_ios : Path where the file containing exported IOs is stored

  • filename : file name containing exported IOs

  • io_list_name_to_export {str/list/empty} : Given IO or list of IOs to be exported.
    If empty or omitted, all IOs from project 'project_path_src' will be exported.

Note: We recommend the r'<path>' syntax instead of "<path>" to avoid interpretation of the escape character (\t, \n...).

Output

  • abs_file_path_to_ios_exported : absolute file path to the file containing exported IOs

Exception

Method return 'None' if an error occurred

Examples

>>> r.ExportIOsConfiguration(r'C:\__WORKSPACE__\tmp\opcua', r'C:\\temp\\rios\\')

'C:\\temp\\rios\\opcua.rios'

Related Items

ImportIOsConfiguration, GetIOsConfiguration

Modules

import RtlabApi

 

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323