This FMU is able to write binary OSI SensorData trace files. The folder the trace files shall be written to has to be passed as FMI parameter trace_path. The trace file writer is build according to the ASAM Open simulation Interface (OSI) and the OSI Sensor Model Packaging (OSMP) examples.
Parameter | Description |
---|---|
trace_path | Path, where to put the generated trace file |
protobuf_version | Protobuf version, with which the OSI messages are serialized as string, e.g. "2112" for v21.12 (see Naming Convention) |
custom_name | Custom name as a suffix for the trace file name (see Naming Convention) |
type | OSI message type string according to the Naming Convention |
Install cmake
(at least version 3.10.2):
sudo apt-get install cmake
Install protobuf
(at least version 3.0.0):
sudo apt-get install libprotobuf-dev protobuf-compiler
git clone https://github.com/openMSL/sl-5-6-osi-trace-file-writer.git
cd sl-5-6-osi-trace-file-writer
git submodule update --init
mkdir -p build
cd build
cmake ..
cmake --build .