Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-02043 // Views: 43 // Created: 2021-10-05 14:45:30 // Last Updated: 2021-10-05 15:00:58
HowTo
Python Reboot Using RT-LAB API

How to use python API to automatically reboot a target : 

The following article includes a python code that allows the user to automatically reboot the target using RlabApi : 

The fields that must be changed in the python code are : 

TARGET_NAME : This variable must have the name of the target given in RT-LAB, in this example the target name is RayanRedhill :

PROJECT_NAME : This variable must have the path to the .llp file. 

The following video is a tutorial for python API : Video

The python script is available in the attached file bellow : 




rebootpython.py1.1 KbDownload File