NumericalTextWriter
Writes numerical signals to a CSV file as hexadecimal or binary text.
Processing
- A file <output_filename_header>_<start time in ns>.csv is created in output_path.
- Each received sample is written as a row: timestamp, signal name, then the values in hex (0x..) or binary (0b..).
Data format
- Inputs: UInt8 vectors; n_input_signal ports are created.
Notes
- Useful to log bit/byte-level data, e.g. with Byte2bits/bits2Byte.
Properties
| Name | Default | Description |
|---|---|---|
n_input_signal | 1 | Number of input ports to create. |
output_format | hex | Number format of the values. Options: hex, bin. |
add_format_identifier | true | If true, values are prefixed with 0x or 0b. |
output_path | Output folder (created if necessary). | |
output_filename_header | rtmaps | Prefix of the output file name. |
signal_name | signal_name | Signal name written in each row. |
input$1_name | Signal name written in the CSV rows of input$1. |
Inputs
| Name | Description |
|---|---|
input | Signals to write; n_input_signal ports named input1, input2, ... Type: UInt8 |
input$1 | Signal number $1 to write to the CSV file. Type: UInt8 |
RTMaps Toolkits Documentation