With CASP Python Support you can now

  • Create and deploy complete CASP models on all supported targets (right from 8-bit Arduino boards to desktop/server computers) with a Python script.
  • Create CASP blocks from Python script.
  • Access hardware GPIO pins of a microprocessor/micro-controller board from Python script running on the host computer.
  • Interface Python script from the host computer with a C/C++ code running on connected embedded microprocessor/micro-controller board.
  • Convert your existing algorithms written in Python to C/C++ using 3rd party Python to C/C++ transpilers (such as Pyccel), embed the generated C/C++ code in a CASP block and use it in a CASP model along with other blocks that runs on all CASP supported targets.
  • Embed Python script in a CASP block that can be used along side with other blocks in a CASP model.

Getting Started

  1. Download and install CASP software.
  2. Some BSPs are installed as part of CASP software installation. If BSP for your target hardware or development board is not yet installed, it can be installed from here.
  3. Ensure Python is installed on your computer.
  4. From CASP GUI, install CASP Python Libraries. Please refer ‘Python Support’ section of CASP documentation on how to install and use these libraries.
  5. Run examples from ‘casp_user_data/pycasp/examples’ folder located in user’s Documents directory.
  6. Please refer to CASP Python Libraries documentation for detailed description of various CASP Python namespaces and functions.