Getting started#
To use Ansys SCADE Power Scripts, you must have a valid license for Ansys SCADE.
For information on getting a licensed copy, see the Ansys SCADE Suite page on the Ansys website.
Requirements#
The ansys-scade-ps package supports only the versions of Python delivered with
Ansys SCADE, starting from 2021 R2:
2021 R2 to 2023 R1: Python 3.7
2023 R2 and later: Python 3.10
Install in user mode#
The following steps are for installing Ansys SCADE Power Scripts in user mode. If you want to contribute to Ansys SCADE Power Scripts, see Contribute to install in developer mode.
Before installing Ansys SCADE Power Scripts in user mode, run this command to ensure that you have the latest version of pip:
python -m pip install -U pip
Install Ansys SCADE Power Scripts with this command:
python -m pip install ansys-scade-ps
Run the tools#
The command-line tools contained in this package can be launched in two different ways: executable or Python module.
They rely on Ansys SCADE API Tools to select the version of SCADE to use at runtime. Refer to Advanced usage with API tools for details or if you want to select a specific release of SCADE.
Executable#
The binaries are in the Scripts directory of your Python environment.
Either add this directory to PATH or use an absolute path.
ansys_scade_ps_<tool> <arg>*
Where <tool> is the name of the tool to run.
For example:
ansys_scade_ps_obfuscator -p my_project.etp -i -t trace.txt
Python module#
python -m ansys.scade.ps.<tool> <arg>*
Where <tool> is the name of the tool to run.
For example:
python -m ansys.scade.ps.obfuscator -p my_project.etp -i -t trace.txt