Simple cli to read AiM xrk
data files.
Early stages CLI, exploring possibilities.
⚠️ the is based around the Rust xdrk lib, which in turns wraps aroundlibmatlabxrk.so.0
, which is actuallylibxdrk-x86_64.so
which means:
- Linux
- x86_64
in my case, both my M1 Macbook and FreeBSD server are utterly useless here (well, I'm building this on a bhyve vm, so there's that)
💡 My build env is Ubuntu 24.04.1 LTS.
$ sudo apt install libxml2-dev
cargo build --release
mkdir ~/lib
ln -s ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xdrk-1.0.0/aim/libmatlabxrk.so.0 ~/lib/
$ LD_LIBRARY_PATH=~/lib ./target/release/aim-reader-cli --help
XRK Data Reader
Usage: xrk-cli --file <FILE> <COMMAND>
Commands:
info Get session info
lap Preview single lap data for all channels (deprecated)
laps Print lap timings
channels Get info about all available data channels
export Export channel data (experimental)
help Print this message or the help of the given subcommand(s)
Options:
-f, --file <FILE> Data file to load
-h, --help Print help
-V, --version Print version
Unknown error:
I/O warning : failed to load external entity "user/profiles/units.xml"
I/O error : No such file or directory
I/O error : No such file or directory
File '**REDACTED**.xrk' loaded successfully!
Current workaround:
mkdir -p user/profiles
echo "<XML/>" > user/profiles/units.xml