File:slow_mpc.html

Moller Polarimeter Slow Control

The Moller Polarimeter Control program (MPC) have been crated to control Moller Detector Settiing, Colimator and Slide Position, High Voltage Setting and monitoring of the Epics Variables and Moller Target Status over network using TCP/IP connection. It has GUI (Main Window) to show applications for control or monitoring and runs server on port 5773 that accepts external requests.
Every application can be started as stand-alone program.
There are few scripts located in ~/Java/msetting/ to start applications: The configuration parameters to start application are defined inside scripts. There is no server when applications runnning alone.

Start MPC program

To start MPC programm there is script with name "mpc". After login with moller account change directory to ~moller/Java/msetting and type "mpc".

Properties file

The MPC program has configured by using properties file that located in the user directory with name "MPC.props". This file stored names of application configuration files. Properties file is loaded to MPC program when it is started. The file has next format(example):
Where,

Main Window

Main Window shows Menu Bar,  and Status Window.
Menu bar includes next menu items :

'File', 'View' , 'Help'

'File' includes following items:

'View' includes follows menu items:

'Help' shows help file.


MPC Server

External requests.

To communicate with MPC Server the program 'mpcclient' is used. This program gets as parameters the hostname(where MPC server is running), portnumber and message for sending to the MPC Server:
For example, next command send command message "GET EPICSINFO" (get information from Epics) to the MPC Server that runs on adaql1 host:
The command message is string with ASCII characters. The format of this command message is follows:

  • <command> - command word to server, one of follows :

  • Updated: 18 Aug 2004