EPICS Home

Experimental Physics and Industrial Control System


 

MEDM: Motif Editor and Display Manager

MEDM is a Motif graphical user interface for designing and implementing control screens, called displays, that consist of a collection of graphical objects that display and/or change the values of EPICS process variables. The supported objects include buttons, meters, sliders, text displays/entries, and graphs. It has two modes of operation, EDIT and EXECUTE. Displays are created and edited in EDIT mode, and they are run in EXECUTE mode.

MEDM was developed at the APS, but future maintenance by us is likely to be very limited.

Documentation

The following documents are available. Textual links are to HTML documents, and other formats are indicated by an icon link. More information about the Flash demos and help, if you have trouble, can be obtained here.

Software Download

Binaries

A prebuilt version of MEDM for WIN32 is available in the EPICS Win32 Extensions distribution. A Windows X Server such as Exceed is necessary to run MEDM and other Motif extensions on WIN32. See "MEDM Fonts for Exceed" above for instructions on installing the MEDM fonts in Exceed.

Source

The source code repository for this software is the github project epics-extensions/medm.

The following tar files contain source code only (no binaries) and were compressed using gnuzip.

Required Software

MEDM was originally designed to use the plotting capabilities of the commercial library XRT/graph for its graphing widgets. It can now also be built using SciPlot, included in the MEDM distribution, instead.

MEDM requires that the Motif and X11 header files and libraries be available and that the X11 and MOTIF settings in CONFIG_SITE.<host_arch> be set correctly. On Red Hat Enterprise Linux installations and derivatives you will need to install these development packages to build MEDM:

$ sudo yum install libXft-devel fontconfig-devel libjpeg-devel libpng-devel

The RHEL RPM packages listed below provide the standard set of fonts that MEDM uses at run-time, although the list here may be longer than is strictly necessary:

$ sudo yum install xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi
$ sudo yum install xorg-x11-fonts-ISO8859-1-100dpi xorg-x11-fonts-ISO8859-1-75dpi
$ sudo yum install xorg-x11-fonts-misc xorg-x11-fonts-Type1

On Ubuntu installations these commands will install the packages and fonts needed to be able to compile and run MEDM:

$ sudo apt-get install build-essential libmotif-dev
$ sudo apt-get install x11proto-print-dev xfonts-100dpi
$ sudo apt-get install libxp-dev libxmu-dev libxpm-dev

Other distributions should have similar packages. In addition you will have to download the list of font aliases that MEDM uses, found in the file medmfonts.ali.txt. What you do with this file to install the aliases varies with your Linux distribution. On Red Hat you would do something like one of these:

$ sudo cat medmfonts.ali.txt >> /usr/share/fonts/X11/misc/fonts.alias
or possibly
$ sudo cp medmfonts.ali.txt /usr/share/X11/fonts/misc/fonts.alias

On recent Ubuntu versions (tested on 14.04) though do this instead:

$ sudo mv medmfonts.ali.txt /etc/X11/fonts/misc/medm.alias
$ sudo update-fonts-alias misc

You may have to restart the X11 server for these changes to take effect (logout and login again should be sufficient). The widgetDM_30 and larger aliases refer to fonts that are not available for Ubuntu, so you may wish to edit those aliases to avoid warnings (use xfontsel to find appropriate replacements).