APIs, concepts, guides, and more
Run a sample app in Python

Learn how to run a sample app in Python.


Precondition
Before getting started you may want to install an IDE (Integrated Development Environment).
The RapidCode API is designed to be compatible with any development environment.

We recommend the following IDEs based on programming language:

Our guides typically assume these IDEs, but the general steps provided should be applicable to any IDE you choose.

🔹 Get started with Python

Note
Contact tech@.nosp@m.robo.nosp@m.ticsy.nosp@m.s.co.nosp@m.m if you need support for a specific Python version.
  1. Install a compatible version of Python. https://www.python.org/downloads/windows/
    Windows: 3.10
    Linux: 3.9, 3.10, 3.11
  2. Uninstall other Python versions (optional but recommended) If newer incompatible Python versions are installed you will have to manage which Python version you are launching RapidCode Python programs with.
  3. Check your Python version
    py --version
    Alt text
  4. Install a compatible version of NumPy pip install numpy==<version>
    https://numpy.org/install/ (This common math module is used when converting between Python and C++ array method parameters)
    Windows: 1.22
    Linux: 1.23, 1.24, 1.25, 1.26
  5. Run one of the sample apps that come pre-installed. Navigate to:
    Windows: C:\RSI\10.X.X\examples\python
    Linux: /rsi/examples/Python
  6. Open RapidCodeHelpers.py in your code editor of choice and modify the configuration constants to suit your setup
  7. Launch a terminal in this directory
  8. Execute py HelloRapidCode.py
    Image

🔹 For your own projects be sure to include critical directories

# (Windows Only) Import the ntx.dll from INtime
os.add_dll_directory("c:\\Program Files (x86)\\INtime\\bin")#ntx.dll
# Import the RapidCodePython.py file (Path to your rapidcode install directory)
sys.path.append("C:\\RSI\\10.X.X\\") # Windows
sys.path.append("/rsi/") # Linux

🔹 See Sample App page for more details

Link