RRrun

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Realtime Roundrobin
Introduced first in SolidGeometry 3.5, Creation date: 2017-03-02, Last change: 2025-09-14

starts Round-Robin Task-List Realtime Environment in stopped state

Description

Matlab is used to execute the task strings as command line and task handles as function call.
The user has the feeling to use the Matlab command interface but in fact in parallel a set of functions runs as round robin task list.
Some commands are helpful to understand the environemnt:
whos - shows all variable used in this environment
RRprompt - Prompt string 'RRrun'
RRtasklist.t0 = cycle time

Some command line commands are new or treated in a different way:
QUIT, EXIT - stops the shell; it can be restarted by RRrun, persistent/global
LIST, SHOW shows the task list
ADD - appends a task at the end of the task list
STEP - executes the task list exactly one time
CONT, GO, START - starts the task execution
STOP, BREAK - stops the task execution
SAVE - saves the task in a file in the current directory
LOAD - load the task list from a file in the current directory

KILLALL - deletes all tasks in the task list
KILL # - delete the task with the 3rd column has the unique nr #

EXE, EXECUTE - reads in command text file and executes all commands, requires START

Have in mind that inter task communication is only possible by variables declared as global!


See Also: RRshell

Example Illustration

 missing image of RRrun (RRtasklist.t0,RRmaxtime)

Syntax

RRrun([RRtasklist.t0,RRmaxtime])

Input Parameter

RRtasklist.t0: Clock cycle time; default is 0.1
RRmaxtime: maximum duration time; default is 600 seconds

Examples

start some tasks and see the result
BREAK
KILLALL
global PL; PL=[0 0 0];
ADD global PL; PL=[PL; PL(end,:)+rand(1,3)];
ADD global PL; VLplot(PL,'b.-',2); view(-30,30); grid on;
LIST
STEP
START





Copyright 2017-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21