Are You a Visual Studio Code User? OpenMatrix Language is There Too!

manoj kandukuri
manoj kandukuri
Altair Employee
edited November 2023 in Altair HyperWorks

The extension provides a powerful, free editor VS code for the OpenMatrix Language, an open-source computational programming language. This brings features like syntax highlighting, indentation rules, collapsible/folding and advanced features like inbuilt dynamic auto-completion, plotting and visualization capabilities of OpenMatrix to VS Code.

Most of these features work out-of-the-box, while advanced features require configuration to get the best experience of OpenMatrix and/or Altair Compose®.

image

Getting Started

  1. Install the latest Altair Compose® or Open-Sourced OpenMatrix
  2. Install VS code - https://code.visualstudio.com/Download.
  3. Install Compose OML - OpenMatrix Language Extension, from within VS Code Extension (ctrl+shift+X) by searching for ‘Compose OML’ or from visual studio code Marketplace.
  4. Configuring extension with Open Source OpenMatrix Language
    1. If you’re not using OpenMatrix installer, follow instructions for Windows or Linux to build OpenMatrix.
    2. Go to extension settings using command (ctrl+,) and under OML, set the path to the OML executable (OML_EXE) to omlcompose.exe.

For example:

       C:\Program Files\OpenMatrix_1.0.13_win64\OpenMatrix\src\bin\win64\omlconsole.exe

      3. Set the OpenMatrix third-party library paths under extension settings as #b.

         image

image

     5. Configuring extension with Altair Compose®

    1. Go to extension settings using command (ctrl+,) and under OML, set the path to the OML executable (OML_EXE) to compose.exe from the installation.

                         For example:

                               C:\Program Files\Altair\2023\Compose2023\hwx\bin\win64\Compose.exe

image

      6. Execute OML

Once Extension installed, OML files and syntax automatically gets recognized by vs code and enables RUN button to execute OML files/scripts.

Plots and visualizations provide the same experience as Open source OpenMatrix or Altair Compose® as configured.

Questions and Support

We encourage all feedback. If you face any issues, please reach out to Altair Compose Community Forum