txformat_group_table
telemetry data is formatted in group (aka table) mode¶
This script provides way of formatting telemetry data into CSV group (or table).
For example, given the following XLink default CSV format: 08/28/2024,17:45:25,BATT,11.975,V,G 08/28/2024,17:45:25,TEMP,21.71,C,G 08/28/2024,17:45:25,MINO,1066,,G 08/28/2024,17:45:30,BATT,11.998,V,G 08/28/2024,17:45:30,MINO,1066,,G 08/28/2024,17:45:30,TEMP,21.86,C,G 08/28/2024,17:45:35,BATT,11.983,V,G 08/28/2024,17:45:35,TEMP,21.71,C,G 08/28/2024,17:45:35,MINO,1066,,G
The script will convert the data into group format: date,time,BATT,MINO,TEMP 08/28/2024,17:45:25,11.975,1066,21.71 08/28/2024,17:45:30,11.998,1066,21.86 08/28/2024,17:45:35,11.983,1066,21.71
The script expects that Tx Format is set to CSV
XLink required setup !TX1 Data Source=Measurement !TX1 Format=CSV !TX1 Custom Script Format=On !TX1 Format Function=group_format
Please note that XLink testing of this script will fail, as the test environment does not provide CSV data
-
txformat_group_table.
group_format
(original_flat_csv)¶ changes the provided flat csv format into group csv format
Parameters: original_flat_csv – flat csv format, as created by XLink when Tx Format is CSV Returns: group formatted csv data, str
-
txformat_group_table.
test_group_formatter
()¶