Restart apache video server here https://dataserver3.bl831.als.lbl.gov:8443/ look in "Status", under Administraton then "List Applications" to see /VideoSystem ; press "reload" $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ configuation files for chain and robot are here: pwd /usr/local/dcs/dhs-tcl/main/resources/config $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ROBOT CHL ROBOT CHL ROBOT CHL ROBOT can MOUNT samples from the command line like this: > dcsoperation.com sequenceManual mount lC$cog ... where $cog is the cog to mount and DISMOUNT samples on the command line like this: > dcsoperation.com sequenceManual mount nN0 ------------------------------- Some other robot commands available through dcs: dcsoperation.com robot_standby [warm cold] (tongs out heat off, tongs in pencil heat on dcsoperation.com robot_pencil_heat [on, off] dcsoperation.com robot_motor_power [low, high] ... where these operatiions are defined: pwd /usr/local/dcs/dhs-tcl/main/scripts/robot/operations ls -lrt -rw-r--r-- 1 blctl 831_user 437 Mar 4 10:17 DismountCrystal.tcl -rw-r--r-- 1 blctl 831_user 468 Mar 6 16:37 Test.tcl -rw-r--r-- 1 blctl 831_user 431 Mar 11 13:40 MountCrystal.tcl -rw-r--r-- 1 blctl 831_user 547 Apr 8 16:05 RobotStandby.tcl -rw-r--r-- 1 blctl 831_user 562 Apr 8 16:05 PencilHeat.tcl -rw-r--r-- 1 blctl 831_user 515 Apr 8 16:23 MotorPower.tcl After making CHANGES to CHL_macro_def.script vncviewer dataserver3:1 # find and KILL robotDHS, e.g.: > ps -elf | grep robot 0 R blctl 7180 40220 99 80 0 - 48466 - Mar06 pts/3 33-15:23:45 /usr/bin/tclsh ./dhs.tcl SIM831 robot 0 S blctl 9079 8799 1 80 0 - 48510 poll_s 09:54 pts/43 00:00:00 /usr/bin/tclsh ./dhs.tcl BL-831 robot 0 S blctl 9101 5556 0 80 0 - 25832 pipe_w 09:54 pts/14 00:00:00 grep robot > kill -9 7180 # TO START robotDHS.com Again: > cd /usr/local/dcs/dhs-tcl/main/scripts > ./dhs.tcl BL-831 robot >> /data/log/BL-831/robotDHS.log & OR vncviewer dataserver3:1 cd /usr/local/dcs/batchbuild/ ./restart_dcs BL-831 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Chain Chain Chain Chain Chain Chain Chain Chain Chain ssh blctl@dataserver3 cd /usr/local/dcs/dhs-tcl/main/scripts/ KILL chainDHS: set chain_PID = `ps -elf | grep chain | grep tclsh| grep -v grep | awk '{print $4}'` kill -9 $chain_PID ... OR .. ps -elf | grep chain | grep tclsh| grep -v grep and kill -9 that PID --------------------------------------------------------- start chainDHS: cd /usr/local/dcs/dhs-tcl/main/scripts/ export TCLLIBPATH="/usr/local/dcs" ./dhs.tcl BL-831 chain >> /data/log/BL-831/chainDHS.log & --------------------------------------------------------- # Change Chain config: cd /usr/local/dcs/dhs-tcl/main/resources/config vi chain.properties #change, e.g.: mdrive.RC=40 # BEFORE STARTING chainDHS must have these values set set IMS = 192.168.4.160 set portnum = 3004 telnet $IMS $portnum rc=45 A 20000 D 20000 --------------------------------------------------------- Synchronize chain with bluice STAFF: Robot Control: Probe "syncronize carousel" --------------------------------------------------------- update bluice dcs after manual dis/mount.com STAFF Tab: System Data dcsstring.com carousel_mounted_position 0.1444 0.5232 -0.0108 280 [x y z phi] carousel_mounted_filename /data/mcfuser/align/YAG_jig_thin_0_00016.cbf carousel_mounted_filename_ts {12/07/2017 14:29:31} carousel_mounted_position robot_cassette 5 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 1 1 1 0 1 0 0 0 0 0 1 1 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 1 1 1 1 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 1 1 1 u u u 1 u u u u u u u u u 1 1 1 1 1 1 u u u u u u u u u u u u u u u u u u 1 1 1 1 1 1 u u u u u u u u u u u u u u u u u u 1 1 1 1 1 1 u u u u u u u u u u u u u u u u u u u u u u u 1 first number always "5" means BL831 Chain numbering system [u m 1 0 ] = [unknown mounted loaded freed] --------------------------------------------------------- robot_status (only looks at args in braces after "mounted:" "{}" nothing mounted "{l 16 C}" ~= {left cog# Cassette} status: 0 need_reset: 0 need_cal: 0 state: idle warning: {} cal_msg: {Gonio Cal: Done} cal_step: {100 of 100} mounted: {} pin_lost: 0 pin_mounted: 0 manual_mode: 0 need_mag_cal: 0 need_cas_cal: 0 need_clear: 0 tool_mode: 0 extra: 0 barcode_setup: 0 barcode_read: 0 prefetched: {} /home/mcfuser/gmeigs/CHL_usbor/robot_status.com --------------------------------------------------------- REstart Apache Video Server $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ PINHOLES pinhole_presets after realigning pinholes with find_all_dcs_beamcenters.com find_all_dcs_CORs.com STAFF Tab: System Data pinhole_preset will be updated by the above scripts if just 1 beam_center or COR is changed the appropiate update(s) must be entered Look in: ~/gmeigs/Collimator/update_pinhole_preset.com ~/gmeigs/CHL_usbor/robot_status.com to get idea how to do this $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ TABS TABS TABS to show or HIDE desired tabs in bluice, add/remove "comment" #'s from/to the appropriate lines ssh -Y blctl@dataserver3 cd /usr/local/dcs/dcsconfig/data vi BL-831.config ... search for "taborder"bluice.tabOrder" $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ TRIGGER TRIGGER TRIGGER To trigger the detector if stuck AFTER an Abort; After hitting Collect, but BEFORE it was triggered detector_trigger.com $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ WAGO WAGO WAGO WAGO WAGO cd /usr/local/dcs/bl831-dhs-tcl ./wagoDHS.tcl real BL-831 >> /data/log/BL-831/wagoDHS.log & $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ read carousel_contents.com output to make copy/paste input spread sheets for upload to https://dataserver3.bl831.als.lbl.gov:8443/crystal-server//Login.html ~/gmeigs/CHL_usbor/setup_spreadsheet.com $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ NOTIFY EMAIL TEXT NOTIFY EMAIL TEXT NOTIFY EMAIL TEXT STAFF TOOLS --> Notify Setup $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ mcfuser/gmeigs/CHL_usbor/carousel_contents_XYZ_phi.com mcfuser/gmeigs/CHL_usbor/carousel_contents_mount_state.com #awk '$7=="mounted"{$7="freed"} $7=="dismounted"{$7="loaded"}\ # $7=="unloaded"{$7="freed"} $7=="loaded"{$7="loaded"}\ # $7=="unknown" {$7="unknown"}\ # {print}' |\ #Find last "mounted" crystal COG# in /data/log/carousel.log set cog_mounted = `/home/mcfuser/gmeigs/CHL_usbor/carousel_contents_mount_state.com bydate | grep -v dismounted | grep mounted | tail -1 | awk '{print $2}'` $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ beamline/launch_backups_globalblood.com $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ beamline/unload_pins_with_pause.com $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ beamline/zero_amp_notes.com $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$