40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Sat Dec 7 19:29:14 2013, Koji, Update, CDS, MEDM/ADL: replace rectangle with specified objects rectangle_config.pngrect_replace_result.png
    Reply  Fri Dec 13 13:45:50 2013, Koji, Update, CDS, MEDM/ADL: replace rectangle with specified objects screen_shot.png
Message ID: 9466     Entry time: Fri Dec 13 13:45:50 2013     In reply to: 9450
Author: Koji 
Type: Update 
Category: CDS 
Subject: MEDM/ADL: replace rectangle with specified objects 

rect_replace.py script was updated.
This sounds crazy but it was actually quite easy as I could use a free font data.


/opt/rtcds/caltech/c1/medm/c1lsc/master/generateLSCscreen/rect_replace.py

Usage:

cat C1LSC_OVERVIEW_ADC.adl | ./rect_replace.py > tmp.adl

Description:

The script takes stdin and spits the result to stdout. It parses a given ADL file. When a "rectangle" object
with Channel A with a string "REPLACE_XXXX", it replaces it with the objects predefined as "XXXX".

Now new type "CHAR" (i.e. REPLACE_CHAR) was added. This replaces the string in Channel B slot
into 5x7 dot matrix representation of the string with the specified color. The dot size is derived from the
height of the original rectangular object.

 

Attachment 1: screen_shot.png  417 kB  | Hide | Hide all
screen_shot.png
ELOG V3.1.3-