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.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Group

IO
Description

List IOs configuration available in a project or in an exported file (*.rios)

Required Control

None
Usage

RtLabApi.GetIOsConfiguration(path)

Get IOs available in a project defined by its path.

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

Parameters
path {str} -- path to an RT-LAB project or an .rios file.

Returns
ios_name {list} -- List of IOs names available in the project.

Input

Path to an RT-LAB project or an .rios file.

Output

Return a list object containing the list of IOs names available in the project or in the .rios file given in parameters
Exception

Method return 'None' if an error occurred

Examples

>>> RtlabApi.GetIOsConfiguration(r'C:\__WORKSPACE__\tmp\opcua')

['OPCUA Server']

Related ItemsImportIOsConfiguration, ExportIOsConfiguration
Modulesimport RtlabApi
  • No labels