Input/output data to/from tcp
Input/output data to/from tcp
Data are read from electronics by the computer nepvme1
running OS9 and written to the network. These data are accepted from
the network by the computer neptun under operating
system Linux. Neptun loads the data to the shared
memory buffer where it can be read by an analysing program and saved
into disk files.
The following steps should be executed to fullfill the described chain
of tasks:
- Login to nepvme1 to the account daqctl, to
neptun to the account daq.
- On neptun: Check if the shared memory buffer
exists (by the command ipcs) and if the program
tcp2shm is running (by the command ps ux).
If the memory buffer does not exist,
create it by the command shmcreate. The program
tcp2shm is run by the command tcp2shm.
- On neptun: Start the program to save data from the
shared memory buffer into disk files by typing shm2file
fileset. Here fileset is a name of file
generation where data will be stored.
- On nepvme1 start a data acquisition program by
typing bash start. This begins the run.
- Once data are written to the network, they can be analyzed on
neptun by the on-line
analysis program.
- To stop the run, say on nepvme1 the command
bash stop.