Script examples

All the scripts included on this section are given as examples. They have not been extensively tested and validated so we can guarantee that they are bug free. The user must evaluate them and run them at his own risk. Scripts of big lengths will require licenses.

Dynamic PID gains change
This script can be used to change the PID gains depending on the speed of the vehicle. The gains will change based on two speed ranges, and the change will ...
Wed, 18 Jan, 2023 at 1:08 PM
Speed - Speed Position mode exchange example
Scenario   There are a lot of cases where we desire that the motors will hold position when our motors are idle. For example, if our vehicle is placed on ...
Wed, 15 Mar, 2023 at 1:25 PM
Limit switch using analog inputs
The below script is an example of how to implement the limit switch action by using an analog sensor. This script can replace the build in analog input func...
Fri, 3 Feb, 2023 at 4:16 PM
Movement duration in Closed Loop Count Position mode & precision
In this article, we are going to use a test script which measures the time required for a motor to reach 2 desired positions(measured in encoder counts), in...
Tue, 16 May, 2023 at 12:40 PM
CANOpen - Transferring data through TPDOs
Introduction CANOpen is a widely used communication protocol for embedded systems. It is based on the Controller Area Network (CAN) protocol which is a ...
Wed, 10 May, 2023 at 5:46 PM