--- format:markdown ... # Command line parameters (communication with diagnostics) ~~~ ./Dirigent.sh --discharge --UBt 0 --TBt 1000 --Ucd 0 --Tcd 2000 --preionization 1 --gas H --pressure 10 --comment "SW develop - dummy test" --diagnostics_doublerakeprobe "r_First_Tip=70, X_mod=1, I_SilverBox=33" --diagnostics_petiprobe "r_LP_tip=85, f_LP=100" --diagnostics_limitermirnovcoils "vacuum_shot=35022" --ScanDefinition "178 179 180 182" ~~~ # External device set-up The classic BASIC solution: the tokamak control system calls the device. To do this, we need its address, set up ssh access to it and save a script in bash somewhere on it, with the following defined functions: ~~~~ #!/bin/bash function GetReadyTheDischarge () { commands executed at the beginning of charging, i.e. about 1 minute before the discharge } function Arming () { commands executed at the beginning of the discharge countdown, i.e. about 10 seconds before the discharge } function PostDischargeAnalysis () { commands executed after the discharge } ~~~~