The alfa_mon program runs on the aeroncpu. It talks to the alfa
control in the rotary floor room on /dev/ttyS1
(the other rs232 line is for alfa motor control).
The rs232 line goes to the fiber transciever in the fiber optic
rack next to the pnting crate (about the middle of the rack) and
then up to the alfa control box in the turret room.
Upstairs:
Software
Communications
program: alfa_mon.c
runs on aeroncpu.
code locations:
source :
/home/cima/Wapp/Software/Dual/Sources/Utilities/alfa_mon. c
On aeroncpu /home/cima comes from wappserv:/data/home/cima. On
other cpus it comes from fileserver:/home/cima.
Logfiles:
/share/cima/Logs/ALFA_start/alfa_mon.log for when started
/share/cima/Logs/ALFA_monitor/alfa_mon.log .. program
error messages.
What it does:
alfa_mon waits for on a mail box for commands from the outsided
world.
If it times out on a command then it will read all the data
from alfa (temps,voltages, currents, etc) and broadcast the block over
a multi-cast socket.
The alfamonwin gui will listen for these broadcasts and display
the info
alfamonwin can also connect to the socket on alfa_mon and
command it to change the calType or read the vacuum gauges.
Starting program on aeroncpu
/etc/rc3.d/S99local has:
su -c
/home/cima/Wapp/Bin/Progs/Start/start_alfa_monwapp .
This checks and kills alfa_mon if it is already running..
( ./alfa_mon & ) > /dev/null .. So all the
printf output goes to /dev/null ??
to start it manually on aeroncpu:
/home/cima/Wapp/Software/Dual/Progs/Wapp/alfa_mon -loopback -test
-attn
-debug
be sure and kill any copy that is currently running before
doing this.
-debug will output messges/errors to stdout.. To send to a
file: