Robotino myRIO Toolkit

From RobotinoWiki


This Page deals with the different VI of the Block Diagram Palette, Front Panel Palette and some other important VI like the PI-Control of the Omnidrive. The last section is about getting you started with your own Project with the Toolkit.

Get the Source and VI package from

Example Project & Demos

The Example Project is automatically opened after the installation of the VI package. (You can find it at ..\National Instruments\LabVIEW 2013\examples\Robotics Equipment Corporation GmbH\Robotino MyRIO Toolkit\examples\example project.lvproj) It contains five Demo VI to test the different functionalities of the Robotino & MyRIO Hardware.

  1. OmniDrive Demo: This Demo shows the functionality of the
  2. Square Demo The Robotino follows the shape of a 1m x 1m square.
  3. Track Get Demo: The Track Get Demo draws a graph of a track with the help of the distance\
  4. Radar Demo: The Radar Demo makes use of the IR sensors. The robot makes a turn of 40\degree over a duration of 1 second. During the rotation the distance is measured every 2 milliseconds by the IR-sensors. After the rotation a picture of those measured points is drawn.
  5. In this Demo the Robotino is capable of autonomous navigation along a wall and is able to detect and move around corners. Two IR-Sensors are used to keep the distance to the wall as to detect the star and end of a corner. This Youtube video below shows the demonstration.


Block Diagram VI

The Block Diagram VI

The Robotino myRIO Toolkit for Labview consist of 19 VI which are arranged in several subcategories.

Initializes and starts the Velocity PI-Control of the 3 DC-Motors of the Robotino with an asynchronous call. Additionally if the “Bumper on” input is “TRUE” the is started which stops all 3 motor-controls upon a collision and thus any further movement. The VI has the references to the asynchronous called VI as output.

Set the current translational and rotational velocities of the Robotino in meter per second and revolutions per second. This VI transforms those inputs into specific rotational speeds for the three Omnidrive wheels. Those calculated values are written into the three global variables “n (M1)”,”n (M2)” and “n (M3)” which are the input values for the different respectively.

This VI stops the then closes the references to them. This VI has the Cluster of references from the as input.

This VI initializes and configures the SPI-Connection with the ADC (AD7490) and then transforms the transmitted voltage values of the 9 IR-Sensors into distances in meter. Per run of this VI only one new analog input value is transmitted so that it needs 16 calls of this function for all analog inputs to be updated.

Front Panel Controls

  • IrSensorGrapic.ctl Shows the numeric distance values of the IR-Sensors and their location.
Picture of the Control

Other VI

This VI is run for each DC-Motor in preallocated clone reentrant execution. The VI is timed on a 1 kHz frequency in a Real-Time loop. First it calculates the difference in encoder counts from the last cycle to the current circle and then it calculates the next duty-circle length of the PWM-Signal with the PI-Control. The amount of values considered for the Integral Control is limited to the last 100 values. Further this VI opens and closes all three I/O references it uses, the encoder counts, PWM-Signal and direction switch of the H-Bridge. The can be shut down through the global variable.

Transforms the IR-Sensor voltage as input into a distance in meters with approximated values from a table of measurements as output.

Creating your own VI with the Toolkit

  1. Open a new VI with your myRIO as the target.
  2. Create a flat sequence structure with 4 frames
  3. Now put the in the first frame and the in the last frame and connect them properly
  4. Put the in second and third frame and the just in the second
  5. Set the Omega in the second frame with the to 0.1 and back to 0 in the third frame.
  6. Go to the Front Panel add an IrSensorGraphic.ctl and connect it back in the Block Diagram with the in the second frame.
  7. Insert an Array to Cluster cast from the Array Palette in the last built connection and add an 10s Time Delay with the Time Delay Express VI to the second frame.
  8. Now you VI should look like in the picture below. Just try out what happens if you run the VI. You should add some objects around the Robotino so he can detect them.

Example vi.png