FTSCSdata

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Serial-Robotics
Introduced first in SolidGeometry 5.4, Creation date: 2024-04-03, Last change: 2025-09-15

converts read data from the URT-1 board into the data format



See Also: FTSCScmd , FTSCSmotorlist , FTSCScmdfindserial

Example Illustration

 missing image of FTSCSdata(datarec,typ)

Syntax

data=FTSCSdata(datarec,[typ])

Input Parameter

datarec: data received from the URT-1 board by the read function; cell array if there are several answers
typ: data type such 'unit8' or 'uint16', default is 'uint8'

Output Parameter

data: data in the type format

Examples


COM1=serialport("/dev/cu.usbserial-840",115200)
[a,b]=FTSCScmd(1,21,'',2,3) % read 3 data sets for PID of motor 1
write(COM1,a,'uint8'); % 'unit8' is mandatory for URT-1 Board
zz=read(COM1,COM1.NumBytesAvailable,'uint8') % 'unit8' is mandatory for URT-1 Board
FTSCSdata(zz,'unit8') % some parameters are uint8 some are uint16




Copyright 2024-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