Plotting binary values
Yet Another Terminal :: Serial Communication :: Engineer/Test/Debug
Brought to you by:
maettu_this,
y-a-terminal
Hi,
I recieve this message:
02h 55h 55h 07h 05h 0Fh 00h A9h 17h 31h B4h 49h 42h 0Ah 29h
Message bytes are interpreted as follows:
I recieve this message every 2s and would like to plot flaoting and integer number.
How do I parse and plot these two values ?
Thank you
Frank
Hi Frank,
Please see tooltip of
Trigger
andAction
:Last edit: Maettu 2023-07-11
You can use e.g. https://regex101.com/ to develop your regex. In your case:
Then, the integral value would become
$1$2
and the float value$3$4$5$6
. However there is a catch: Regex doesn't allow to combine these captures into single values, especially not a floating point value. So YAT unfortunately doesn't support plotting such hex values yet. You may file a feature request for this. But it's not that easy to implement, won't be able to do this shortly.In the meantime: Use
Log
to capture the data and plot it in Matlab or Excel or whatever.The YAT plot infrastructure is just meant to cover the simple use cases, advanced stuff shall be done in specialized tools.
Best regards,
Matthias
PS: Refining the title from "Parsing meassage" to "Plotting binary values".
Last edit: Maettu 2023-07-11