Sample menu:


03 Juli 2013:
hart_0.4.5 released!

sourceforge project site »

CSS ist valide!

Valid XHTML 1.0 Strict Logo

RTAI navigation

RTAI Codegenration

Please follow Installation!. In the following a example will be presented on such installed environment!

WORKS ONLY with SCILAB 4.1.2!!!

1. Starting scilab
2. Loading HART-Toolbox
rtai palette
3. Starting scicos
rtai palette
4. Adding needed blocks to scicos
  • Open the sources palette
  • Select the activation clock and add it to the scicos-diagramm
  • Open the HART RTAI palette
  • Select the sin generator and add it to the scicos-diagramm
  • Select the scope and add it to the scicos-diagramm
rtai palette
  • Connect the sine output with the scope input
  • Connect the output of the clock with the sine and the scope activation input
rtai palette
  • Select region to super block
  • Draw a rectangle over the sine generator and the scope block
rtai palette
  • Change the Period of the activation clock to 1 msec
  • Save the diagram as demo1.cos
  • Open the Super block
  • Rename the superblock to demo
rtai palette rtai palette
  • Close the super block
  • Select Code generation from the menu
  • Click on the super block
  • Change the file path if needed
rtai palette
  • If everthing works properly, the output in the scilab main window should be like this one:
rtai palette
  • Scilab / Scicos can be closed
  • Open a terminal and go to the directory with the generated code
  • Be shure, that all rtai modules are loaded properly
  • start the program: ./demo
rtai palette
  • Start QRtailab
  • Click on Target/Connect
  • Clock on View/Scope
  • Enable the scope by clicking on Show/Hide
rtai palette
  • Stop the program by clicking on Target/Stop
  • Close Qrtailab

Gratulation! You have generated your first real time program.