Descargar documento () de 20

Herramienta de secuencias de comandos CYME con Python

Los sistemas de energía en rápida evolución de la actualidad requieren que los ingenieros realicen estudios integrales con el objetivo de evaluar el funcionamiento de sus redes en diferentes condiciones. Aunque son informativos, algunos de estos estudios pueden ser repetitivos y llevar demasiado tiempo. La automatización permite a los ingenieros evitar procedimientos redundantes y laboriosos, y brinda, sin ningún esfuerzo, la información y los resultados necesarios.
Para facilitar los esfuerzos requeridos para la realización de varias simulaciones manualmente y para ampliar la capacidad de personalización de las aplicaciones del software CYME de Eaton, se integraron secuencias de comandos Python en el software de análisis del sistema de energía CYME. Con las secuencias de comandos Python, los usuarios pueden realizar con facilidad análisis de lotes, automatizar estudios de rutina, crear nuevos algoritmos y recuperar rápidamente información con tan solo hacer clic en un comando.

MÓDULO DE HERRAMIENTA DE SECUENCIAS DE COMANDOS CYME CON PYTHON

GENERAL

Python scripting comes with a Site Package, a Console, a Toolbox and a built-in script editor. It can be used in a stand-alone mode or in a mode directly embedded into Eaton's CYME software.

  • The Python Site Package contains all the modules and functions required to access network properties, manipulate equipment and devices, perform various analyses and more importantly, obtain meaningful results
  • The Console allows users to carry out commands directly in the CYME application to allow command testing, variable value inspection and quickly retrieve information. A command manager keeps track of the history of commands
  • The Toolbox allows the users to add and execute scripts. Variables defined in the scripts can be accessed through the Toolbox without having the scripts be modified
  • The built-in script editor is simple to use and includes features such as syntax highlighting, color-coding and code-completion
EASY SCRIPTING WITH PYTHON

Python is a scripting language that is open-source and cross-platform.

Unlike other programming languages, Python does not have difficult syntax and offers code completion.  Its high readability combined with Eaton's CYME function names makes Python easy to learn for beginners while staying powerful for experts.

Not only does it take care of exception handling, the CYME Scripting Tool with Python has also been robustly designed to provide the latest data model.

Python scripting takes advantage of all the power accessible through regular expressions, along with an advanced filtering mode that helps when accessing data collection.

PYTHON CONSOLE AND TOOLBOX

The Python Console and Toolbox allow embedded Python usage within Eaton's CYME software for the rapid execution of several command and scripts.

Users can write scripts using the built-in script editor, and also write scripts in any text editor and execute them in a “stand-alone” process outside of the Eaton's CYME application environment, via your favorite Python IDE (IDLE, Komodo IDE, Eclipse, PythonWin, PyCharm, etc.).

EXTENDING CYME SOFTWARE CAPABILITIES

Whether scripts and commands are run in the embedded or non-embedded way, the possibilities to extend the capabilities of Eaton's CYME software are unlimited.

The Site Package developed offers many modules designed to be powerful and easy-to-use: network modeling, database access, equipment, report and error management. These modules are constantly evolving to better suit the growth of the application.

Besides quickly retrieving information through several command lines or running routine analysis through the use of scripts, users can also create their own algorithms and write their own analysis. For example, users can create their own Load Growth analysis to modify the loads in a complex way that cannot be easily achieved with the default Load Growth analysis. Likewise, your commands can be inserted to apply modifications to the network. Charts and reports are easily customizable to display the results according to your preferences.

Several device controls and customization tools now offer embedded scripting functionalities. Scripts can now be used to define the control for capacitors, regulators, battery energy storage systems and centralized capacitor control systems. They can also be used to create custom keywords and filters.

Python’s power and user-friendliness makes it the ideal tool for writing any large application to suit your needs and simplify your work.

¿Necesita soporte para un producto?

Portal de usuarios de CYME: my.cyme.com

Tel.: 450-461-3655 o 800-361-3627 (Canadá & EE. UU.)

Correo electrónico: cymesupport@eaton.com

Preguntas antes de comprar

Correo electrónico: cymeinfo@eaton.com