Secondary Beam Line Info by Urs Rohrer

The Control of PSI's Secondary Beam Line Systems (today mainly for Muon Beams) is based on simple Client/Server architecture. Cheap Windows PCs (XP-SP2 servers linked with a serial interface to the CAMAC hardware) are relatively easy maintainable. Each of the 7 Secondary Beam Line Controls are independent from each other, but may be interconnected via TCP/IP to each other for borrowing access to power supplies of a neighboring Secondary Beam Line area used temporarily for some additional magnets of their own Secondary Beam Line.

Secondary Beam Line Control System

Secondary Beam Line The current PSI Secondary Beam Line Control System has evolved from the former system, which was based on the usage of Atari ST computers [1]. The basic principle behind the current system for the secondary beam line control is still the same: All seven secondary beam line areas in the experimental hall must be independent of each other, but should use the same software (e.g. Operating System and Programs) and hardware components (e.g. Camac and Road-C). If one secondary beam line area is down, the others shouldn't be affected by this event. But if resources like power supplies have to be shared, then there should be the possibility to connect the components of two (or more) secondary beam line areas via networking. Furthermore, the system has to be small, simple and easily maintainable. This has been realized during the years 1995-96 by using Intel-CPU based PCs as hardware platforms, running MS Windows 95 (upgraded later to Windows 98 and now to XP-SP2) as OS and utilizing a TCP-IP Client/Server architecture (see Fig.1 (14 kB) and Fig.2 (16 kB)). Each secondary beam line area has its own CAMAC crate, which is connected via RS-232 with the server PC and contains interfaces and modules according to the needs of the specific secondary beam line area. In Fig.3a (66 kB) a photograph of a typically equipped camac crate (the one of the former µE4 secondary beam line area) or in Fig.3b (251 kB) of the current M3 secondary beam line (with the new IP Carrier Board and the 3 CAN-Bus interfaces) are shown. All secondary beam line area client and server PCs are inter-connected via Ethernet and included in 3 Microsoft Network groups (AEA_NT, WEHAS and WEHAC) for easy maintenance (backups, downloading new programs, upgrades etc.) (see Fig.4 (10 kB)). A résumé about the features of this simple Secondary Beam Line Control System has been published in the PSI Scientific and Technical Report 1998 Volume VI (Large Research Facilities) on pages 18 - 21. More detailed information about some important aspects and 2 Java Applets are selectable via the following buttons:

Secondary Beam Line
Secondary Beam Line
Secondary Beam Line
Secondary Beam Line
Secondary Beam Line
Secondary Beam Line
Secondary Beam Line

Secondary Beam Line Secondary Beam Line Last updated by Urs Rohrer on 26-Aug-2008
Secondary Beam Line Secondary Beam Line PSI home page
Secondary Beam Line Secondary Beam Line Secondary Beam Line Control System (printable full report, pdf 1.07 MB)
Secondary Beam Line Secondary Beam Line Calculator (Java Script)

Table containing some additional useful information:

[1]
U. Rohrer, Secondary Beam Line Computer Control at PSI. Annex I of PSI Annual Report 1988, p.7-8 (21 kB)
Secondary Beam Line Secondary Beam Line
All 7 area server PCs have been replaced by new PCs running Windows XP-SP2 Professional as Operating System (in a FAT32 partition). The PC cases are black or light-gray colored rack-mountable 19" units. For more info press 'Used Computers' button. (No hardware watchdog units are used anymore.)
Secondary Beam Line Secondary Beam Line
On all 7 area client PCs the Operating System has been upgraded from Windows 98 SE to Windows XP-SP2 Professional running in a FAT32 (4 GB) partition. The RAM has been upgraded from 128 to 256 MB and the Ethernet interface has been replaced with a modern 3Com 3C905CX-TX-M PCI card.
 
Each of the 7 secondary beam line 's device settings are logged every 20 secs. These beam line data are kept in separate directories divided in up to 10 files of 1 MB size each. Thus, depending on the number of devices, data for the last 3 to 6 days are stored. You may access these logging data .
 
2 spare PCs (server and client) are available for replacing temporarily a defective area or server PC. Here some instructions on how to proceed.
 
A flaw in the 'Rate Optimizing Program for a Secondary Beam Line' (Optima) has been corrected. Until now the 6-fold scaler (S-500) has not been gated, which led occasionally to bad normalized experimental rates and which therefore disturbed the automatic search for the maxima. Now all 7 areas are equipped with an IO-50x unit (must be located next to the scaler unit on the right side) which controls the inhibit input of the scaler.
 
All 7 area-server PCs have been equipped with a second CAMAC server module based on CORBA (Common Object Request Broker Architecture), which is fully multi-threaded. But in order to avoid conflicts inside the single-threaded RS232 module between this new server and the standard TCP/IP CAMAC server (both embedded in a Windows shell) a Critical Section Object (a component of the shared memory structure "Cambuf") acting as a Mutex inside the multi-threaded Camac-DLL code queues the accesses to the shared RS232 interface code (see Fig.5 (7 kB)). CORBA allows telecommunicating with remote objects (servers) on a relatively high level of abstraction. As CORBA implementation the freely available omniORB2 by AT&T (programmed in C++) has been chosen. In order to get information about the number of connected hosts and their names and how often they timed-out the omniORB2 API had to be expanded (by adding some code and rebuilding the libraries). First tests with this new CAMAC server (Server99.exe) show very encouraging results (stable operation and no side effects so far). Code for a simple CORBA CAMAC test client is presented here for C++ (AT&T's omniORB2) and for Java (Sun's JDK/IDL). The Seondary Beam Line Programs "Set Point", "Combi-Control", "Optima", "Magnet Cycling" and "Inter Active Camac Command" are now also available in the "C++ Corba client" version.
Secondary Beam Line
For the 4 Secondary Beam Line areas Secondary Beam LineE1, Secondary Beam LineE5, Secondary Beam LineM1 and µE4 it is now possible to open and close the beam shutter(s) remotely. This is very useful for automatic data taking in case you have to check there from time to time the background with a closed beam shutter. The 3 other areas may also be connected to this feature if required by the experimentalists.
  Secondary Beam Line Secondary Beam Line
The 4 Secondary Beam Line programs 'Set Point', 'Optima', 'Combi Control' and 'Magnet Cycling' may now be connected to up to 4 server PCs. Because of the added complexity, for each of the 4 programs the indication of the server to which the page, group or device in use relates has been improved.
  Secondary Beam Line Secondary Beam Line
At the 5 Secondary Beam Line areas µE4, M1, M3, E1 and E5 the ROAD-bus has been replaced by the more reliable CAN-bus. The 'Firmware' of the new CAMAC-to-CAN interface handles CAMAC-I/Os 100%-compatible with those of the old CAMAC-to-ROAD interfaces. Therefore no program modifications had to be made. Only the local addresses of the different power-supplies may eventually had to be changed (new device.lis). The remaining 2 areas will eventually also be equipped with the new bus during the next shutdowns (probably one per year).
  Secondary Beam Line Secondary Beam Line
In order to get a 16 times better resolution for some critical secondary beam line magnets, the "16/12 bits signed combi controller" (type = 10) has been implemented. (This controller supports polarity switching together with 16 bits DAC and 12 bits ADC resolution.) The first magnets equipped with this controller type are the bending magnets ASK71 and ASK72 at the Secondary Beam LineE3 area.
  Secondary Beam Line Secondary Beam Line
In the Secondary Beam LineM3 area the 3 bending magnets ASL31, ASL32 and ASK32 got new power supplies each with a local DSP controller and an optical link to the CAMAC IP Carrier Board interface. The IP (Industry Pack) firmware developped by Guido Janser is designd in such a way, that no modification of the Control System Software for Secondary Beam Lines was necessary.