NON-Tango: ONLINE crashed

The following list contains the files that help you to recover from a crash. All of them are versioned. They can be found in /online_dir.

online.dev The device list. A binary file which is created on image exits.
online.gra An ASCII file that contains the device list in human readable form. It is created on image exits.
online.log The log file. Inspecting it may help you to understand what was happened.
motor_positions.bck (VME) The motor positions as calibrate commands. This file is updated after every completed move.

User Action:

Save: Copy /online_dir/motor_positions.bck (VME) and /online_dir/online.gra to save places, e.g.: ~/temp/mp.gra and ~/temp/ol.gra. Both files are human readable. Look into them to make sure that both files contain reasonable contents. If the contents of a file is corrupted, save an earlier version.

Check device list: Make sure that the size of the device list did not change: ls -alt /online_dir/online*.dev.

Device list ok: Start ONLINE and let cmr(), called from exp_ini.exp, fix the motor positions. Section 13.16.3 explains how it works. You may inspect online.log to see what has been done.

Device list corrupted: If you decided that the most recent device list is corrupted, you may start ONLINE without loading a device list (edit exp_ini.exp), then execute the saved version of online.gra, ~/temp/ol.gra, to restore the device list. This is done by:

 
$ cd ~/temp
$ online 
ONLINE> run ol.gra

VME: Execute the saved version of 'motor_positions.bck', ~/temp/mp.gra, to restore the motor positions. This is done by:

 
ONLINE> run mp.gra

After this is done, all motor positions are correct, except for those motors which were moving while the crash occured.

CAMAC: Inspect online.log to determine the current motor positions. If you lucky, only a few motors have been moved since the last ONLINE session. Calibrate the motors by hand.