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.

ImportIOsConfiguration

Group

Model Preparation

Description

Import a list of IOs configurations from a file (*.rios) in a project

IMPORTANT: Project whose IOs are exported must be closed.

Required Control

None

Usage

ImportIOsConfiguration(project_path_dst, file_path_to_exported_ios, io_list_name_to_import=[])

Input

  • project_path_dst : Directory path to the project where IOs are imported.

  • file_path_to_import_ios : file path to the file containing exported IOs (*.rios), created by using 'ExportIOsConfiguration(...)' method

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

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

Output

Return a dictionary containing the name of the IO as a key and the status of the importation : success or skipped, if already present.

Exception

Method returns 'None' if an error occurred.

Examples

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

{'OPCUA Server': 'success'}

Related Items

GetIOsConfiguration, ExportIOsConfiguration

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