SCtest

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - USB Interface
Introduced first in SolidGeometry 2.1.1, Creation date: 2015-03-27, Last change: 2025-09-14

tests a serial communcation line on apple osx

Example Illustration

 missing image of SCtest (port)

Syntax

SCtest([port])

Input Parameter

port: port description; default is '/dev/tty.usbmodem00091661'




Copyright 2015-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 designed to test a serial communication line on Apple OSX. It is part of the SG-Library and was created by Tim Lueth on March 27, 2015. The function is named SCtest and it takes an optional input parameter.

Input Parameters

Algorithm Steps

  1. The function begins by setting a default value for the port variable to '/dev/tty.usbmodem00091661'.
  2. It checks if there is at least one input argument (nargin>=1) and if the first argument is not empty (~isempty(varargin{1})).
  3. If the above condition is true, it assigns the first input argument to the port variable, overriding the default value.
  4. The function then creates a serial object 's' using the specified port. The serial object is configured with a baud rate of 9600 and a line terminator set to 'LF' (Line Feed).

The function does not include any switch conditions or additional logic beyond setting up the serial communication parameters.

Algorithm explaination created using ChatGPT on 2025-08-18 21:47. (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