Environment Setup
Set up VS Code or CLion to build, run and debug Motorcortex C++ control applications on a target.
2 minute read
Motorcortex makes developing real-time motion control applications simple. It reduces your development time and effort greatly by providing solutions for the most complex software tasks:
To get started with developing with Motorcortex you need:
Motorcortex control applications are built and deployed using CMake. Recommended IDEs are CLion or Visual Studio Code, but any IDE that supports CMake should work. For CLion plugins are provided that can generate an application framework with the features you need. You only have to fill in the blanks.
Development of the applications can be done in three ways:
If you have an Intel-based Ubuntu PC, you can install the Motorcortex-core library and other dependencies locally and compile and run your application on your local machine. You need to have a recent GCC (version 8+) or Clang (version 5+) compiler and CMake installed.
Remote development of the applications means that your code is compiled on the Motorcortex Target System. This method is easy to set up, it does not require cross-compilation tools and dependencies to be set-up on your local machine. However, the downside is that it may be (much) slower to compile on your target (the controller) because generally this has less computing power than your normal PC.
With the Motorcortex SDK it is possible to cross-compile the code for the remote Motorcortex Target System on your local system. This is very useful, because it allows you to build applications for the Target system without having access to the Target. Also, usually, your local PC is (much) faster than the Target System and cross-compiling will significantly decrease the compile time for large projects.
Set up VS Code or CLion to build, run and debug Motorcortex C++ control applications on a target.
Description how to use MATLAB & Simulink with motorcortex.