ddd How to start the program ddd: The OOCS

Transcription

ddd How to start the program ddd: The OOCS
ddd
ddd: The DOOCS Data Display
run-time version
editor
1
Kay Rehlich
How to start the program
!
To start the editor:
ddd [-dir default_directory_list] [-comp component]
[-adr base_adr] [-nl] &
example:
ddd -dir dir1:dir2:dir3 -comp main_select
!
To start the run-time version:
ddd_run [-dir default_directory_list] [-comp cmp] &
!
Start with a script:
ttf_ddd
!
The script contains (example):
source /usr/home/pvak/.cshcommon
setenv FONTTMP ‘xlsfonts lucidasans | head -1‘
if ( $FONTTMP == "" ) then;
xset +fp tcp/hesp05:7100;
limit descriptors 256
endif
ddd -dir /usr/ttfsvr3/ttflinac/ddd/diag:/usr/ttfsvr3/ttflinac/ddd/diag/bis:/usr/ttfsvr3/ttflinac/ddd/rf:/usr/ttfsvr3/ttflinac/ddd/vac:/usr/ttfsvr3/ttflinac/ddd/util:/usr/ttfsvr3/ttflinac/
ddd/kryo:/usr/ttfsvr3/ttflinac/ddd/mkk:/usr/ttfsvr3/ttflinac/ddd/lab:/usr/ttfsvr3/ttflinac/ddd/
std -comp main_select &
Kay Rehlich
2
ddd Editor Main Panel
Tools:
select
line
rectangle
circle
controls
text
preview of the selected
component
drawing or data taking mode
create a
new
component
show the
component
delete the
component
data
display
update the
component
if condition
import a
component
from a file
save the
plot
component
component from list
into a file
scrolling list with loaded components
buttons operate on the selected component in the list
3
Kay Rehlich
Menus of ddd Main Panel
more..
editing actions
on selected items
brings an element
Lists all data from
to front/back
devices
stores or reads all components into/from
one file
sets the grid parameters groups/ungroups the selected
exit the program
of the selected window
items
Kay Rehlich
4
1. create a new window
2.
3.
Kay Rehlich
5
Create a Controls Component
Example: toggle a bit in a device
1.
3.
2.
7
Kay Rehlich
Create a Controls Component
Example: start a new window
Kay Rehlich
8
Create an IF Component
Animate a graphic
1.
3.
5.
4.
Kay Rehlich
2.
9
Create a Plot Component
Kay Rehlich
10
Address Generation
Used for Command and Data Components
Address of Data Components:
/PIRANI_VALVE//P
Displayed address:
merged with
Displayed address:
LAB.VAC//MM1.PS/
/PIRANI_VALVE//P
merged with
TTF.VAC//DISTC.PS/
/PIRANI_VALVE//P
11
Kay Rehlich
Create a Reusable Component
5.
2.
1. draw the component
and save it
3.
4. draw a rect to insert the component
Kay Rehlich
12
Runtime panels
ZOOM
Frames with scrollbars are zoom able.
update all device data
select the update rate
zoom out
zoom in
x zoom out / in
update indicator
The “z” button is used to zoom out, i.e. more elements are visible.
To zoom in x direction only the buttons “->x<-” to zoom out and “<-X->” to zoom in are provided.
13
Kay Rehlich
PROTECTED COMMANDS
Actions on sensible part of the system can be protected by a password. These commands appear on a
window with a user name.If a user has qualified by his name and password the icon on the left side is
turned into green, otherwise it is red. A click on the icon starts an other widow to enter the user name
and password. The password is the normal password of a user, it is checked and if valid the icon becomes
green. Group accounts are not valid user names. This is a general check only. A certain action might be
further restricted to some users only. This is defined on a device basis (or facility) in configuration files.
To disable the password one can push the “disable” button or close the whole ddd application to an icon.
When opening it again the password is cleared.
Kay Rehlich
14
Archive Parameters
Fill a Text Panel for Archive Parameters
1. double click
3. fill panel
2. click on value
Help for parameters
15
Kay Rehlich
Usage of the Print Window
Output is PostScript
Portrait/landscape format
Output to printer or file
Printer or file name
Grid on/off
Print the window Updates the data and redraws
Draw a rectangle to insert
a line/square/circle/text
Clears windows and
move
selected
to
front/back
inserts all actual windows
Kay Rehlich
16
Mouse Functions in a Plot
click to select nearest
data point
and show in header
and footer
change y-scale
only
zoom in
change x and y
change x-scale only
17
Kay Rehlich
Mouse Functions in a Plot 2
Del or BackSpace:
remove selected curve
right mouse button:
show plot menu
zoom out
Kay Rehlich
click middle mouse button:
refresh this plot
18
Mouse Functions in a Plot 3
double click left
Kay Rehlich
19