Skip to content

Commit

Permalink
Merge pull request ControlSystemStudio#3194 from katysaintin/master
Browse files Browse the repository at this point in the history
Add documentation in rst file for AdvancedConverter Application
  • Loading branch information
katysaintin authored Nov 19, 2024
2 parents 867c6cf + ae35df9 commit e660df0
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
Binary file added docs/source/converter.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions docs/source/converter.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
=================
AdvancedConverter
=================

OPI to BOB converter
--------------------


Table:

+ Description
+ Command Line
+ Converter application

Description
------------

AdvancedConverter is a tool to convert massively and recursively CSS OPI to Phoebus BOB files. It will automatically convert the widgets and their properties from the legacy file format.

The converter takes folder or files and convert any OPI files into a BOB files (without delete previous OPI files).
The programm keep the hierarchy, subfolders, scrypt and files inside.

Command Line
------------
To use this AdvancedConverter, you can do it via this command line invocation:

Usage: Usage: -main org.csstudio.display.builder.model.AdvancedConverter [-help] [-output /path/to/folder] </path/to/opi/folder>

Converts BOY "*".opi files to Display Builder "*".bob format

**-output** /path/to/folder - Folder into which converted files are written

<files> - One or more files to convert

Exemples :
*Convert and copy in another folder*

**-main org.csstudio.display.builder.model.AdvancedConverter** *-output* **output/path/to/folder input/path/to/folder**

*Convert and stay in the folder*

**-main org.csstudio.display.builder.model.AdvancedConverter input/path/to/folder**

Converter application
-----------------

Located in *Utility -> OPI converter*, it will generate a pop up window. In this pop up, you can choose a input file or folder with the Browse button in the input section. In a similar way, you can choose or not a output folder.
To run the conversion you need to press the run button.
.. image:: converter_path.png


If the output is empty, the conversion will be done in the input folder.
.. image:: converter.png



Right before the conversion, you might have an overriding message window. It appear when you already converted a file in the output folder.

If you select **YES**, it will **delete** all bob files present in the output folder and process the conversion normaly and convert evey opi files.

If you select **NO**, you return in the browsing section.

During the conversion, you can follow the conversion process with the progress bar. When the conversion is done, you return in the browsing section and can close the window with the "x" button or rerun a conversion.






Binary file added docs/source/converter_path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e660df0

Please sign in to comment.