RRkeyboardCallback

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-08-19

this callback fnct collects keyboard character and stores it into two global variables

Description

This callback function is called by RRshell after opening a figure as entry window. It uses several global variables for exchange with RRshell:
global RRwindow - handle to the RRShell figure
global RRkeyboardLine - command line to execute after CR
global RRkeyboardCurs - string to collect character before execution

See Also: RRshell , RRcreateTasklist , RRhelp

Example Illustration

 missing image of RRkeyboardCallback

Syntax

RRkeyboardCallback




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

Algorithm (Workflow)

This algorithm is a callback function named RRkeyboardCallback designed to handle keyboard input in a MATLAB figure window. It interacts with global variables to manage and execute command lines based on user input.

Input Parameters

Global Variables

Algorithm Steps

  1. Retrieve the character from the event structure using event.Character and store it in variable A.
  2. Convert the character to its ASCII value using uint8(A) and store it in variable B.
  3. Check if the length of B is not equal to 1. If true, exit the function.
  4. Use a switch statement to handle different ASCII values of B:
  5. Print the character A to the command window using fprintf.
Algorithm explaination created using ChatGPT on 2025-08-19 08:06. (Please note: No guarantee for the correctness of this explanation)

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