STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
start_calibration_system Namespace Reference

Functions

str _board_ip_for (str sensor_type)
int _default_udp_port ()
bool check_system_health ()
 list_available_tools ()
str select_tool_interactive ()
list build_tool_command (str tool_name, args)
 main ()

Variables

 level
 INFO
 format
 logger = logging.getLogger(__name__)
bool _cfg_loaded = True
bool ROBUSTNESS_AVAILABLE = False
 OperationMode = None
 SystemConfig = None
 CALIBRATION_DIR = Path(__file__).parent.resolve()
dict TOOL_REGISTRY

Detailed Description

Mission-Critical Calibration System Startup
Provides mode selection, validation, and health checks before launching
calibration tools for PT, TC, RTD, and LC sensors.

Usage:
  # Interactive mode selection
  python3 start_calibration_system.py

  # Launch specific autonomous calibration tool directly
  python3 start_calibration_system.py --tool autonomous_pt_calibration --udp-port 5006 --board-ip 192.168.2.101
  python3 start_calibration_system.py --tool autonomous_tc_calibration --udp-port 5006 --board-ip 192.168.2.103 -i
  python3 start_calibration_system.py --tool autonomous_rtd_calibration --udp-port 5006 --board-ip 192.168.2.104 -i
  python3 start_calibration_system.py --tool autonomous_lc_calibration  --udp-port 5006 --board-ip 192.168.2.105 -i

  # Launch calibration GUI
  python3 start_calibration_system.py --tool pt_calibration_gui --mode calibration

Function Documentation

◆ _board_ip_for()

str start_calibration_system._board_ip_for ( str sensor_type)
protected
Get default board IP for a sensor type from config, with hardcoded fallbacks.

Definition at line 69 of file start_calibration_system.py.

Referenced by build_tool_command(), and main().

◆ _default_udp_port()

int start_calibration_system._default_udp_port ( )
protected

Definition at line 84 of file start_calibration_system.py.

Referenced by main().

◆ build_tool_command()

list start_calibration_system.build_tool_command ( str tool_name,
args )
Build subprocess command for the selected tool.

Definition at line 292 of file start_calibration_system.py.

References _board_ip_for().

Referenced by main().

◆ check_system_health()

bool start_calibration_system.check_system_health ( )
Check system health before startup

Definition at line 162 of file start_calibration_system.py.

Referenced by main().

◆ list_available_tools()

start_calibration_system.list_available_tools ( )
List all available calibration tools and their status.

Definition at line 241 of file start_calibration_system.py.

Referenced by main(), and select_tool_interactive().

◆ main()

start_calibration_system.main ( )

◆ select_tool_interactive()

str start_calibration_system.select_tool_interactive ( )
Interactive tool selection.

Definition at line 265 of file start_calibration_system.py.

References format, and list_available_tools().

Referenced by main().

Variable Documentation

◆ _cfg_loaded

bool start_calibration_system._cfg_loaded = True
protected

Definition at line 44 of file start_calibration_system.py.

◆ CALIBRATION_DIR

start_calibration_system.CALIBRATION_DIR = Path(__file__).parent.resolve()

Definition at line 66 of file start_calibration_system.py.

◆ format

start_calibration_system.format

Definition at line 30 of file start_calibration_system.py.

Referenced by select_tool_interactive().

◆ INFO

start_calibration_system.INFO

Definition at line 30 of file start_calibration_system.py.

◆ level

start_calibration_system.level

Definition at line 30 of file start_calibration_system.py.

◆ logger

start_calibration_system.logger = logging.getLogger(__name__)

Definition at line 32 of file start_calibration_system.py.

◆ OperationMode

◆ ROBUSTNESS_AVAILABLE

bool start_calibration_system.ROBUSTNESS_AVAILABLE = False

Definition at line 49 of file start_calibration_system.py.

◆ SystemConfig

◆ TOOL_REGISTRY

dict start_calibration_system.TOOL_REGISTRY

Definition at line 91 of file start_calibration_system.py.