How fiber-optic-sensing-system/mpg-foss works
mpg-foss is a command-line tool for collecting fiber-optic interrogator (Gator) measurements and saving parsed sensor data as CSV. The main workflow is command dispatch, USB acquisition or simulated packets, packet parsing and sensor-value extraction, then optional CSV output; users can also clean prior output. The README documents plotting and wavelength/strain conversion capabilities, but the sampled plotting source is only a stub, so those capabilities are shown without inferred runtime links. Relationships reflect the excerpts and README; unsampled MATLAB implementations were not inspected.
Main entry points: gator-data-to-csv.py Gator collector · foss_start.py Command router · foss.py CLI launcher · cleanup.py Output cleanup
Components 12
Command entry
- CLI launcher
foss.py - Command router
foss_start.py
Gator collection
- Gator collector
modules/gator-data-to-csv.py - Packet parsing
modules/fosmodule.py - Packet simulator
modules/fosmodule.py
Data outputs
- CSV export
modules/gator-data-to-csv.py - CSV output files
data/out - Output cleanup
modules/cleanup.py - Measurement plots
matlab - Plotting stub
modules/graphical-tools.py
Other components
- Engineer
- Gator device
Connections 10
- Engineer → CLI launcher: runs command
README.md - CLI launcher → Command router: starts router
foss.py - Command router → Gator collector: launches collection
foss_start.py - Gator collector → Gator device: reads USB data
modules/gator-data-to-csv.py - Gator collector → Packet parsing: parses packets
modules/gator-data-to-csv.py - Gator collector → Packet simulator: creates simulated packets
modules/gator-data-to-csv.py - Gator collector → CSV export: prepares sensor rows
modules/gator-data-to-csv.py - CSV export → CSV output files: writes CSV
modules/gator-data-to-csv.py - Command router → Output cleanup: launches cleanup
foss_start.py - Output cleanup → CSV output files: removes CSV files
modules/cleanup.py