There are two applications:
ram2eth
file:///misc/hadaq/cvsroot/rpctrbetrax/eth2file
--response for sending triggers & reading RAM1, RAM2 & sending this data via ethernet. This application takes three arguments:
- IP number of server,
- number of triggers,
- boolean value -> write(=1) or not(=0) to local file on etrax
Example(server is running on DEPC152.gsi.de):
/mnt/flash/ram2eth 140.181.66.120 10000 0
Etrax is sending in this case 10000 triggers to the FPGA, next sending the data to server, which is localized on 140.181.66.120 and not saving this data on the local disk (/var/testOutput).
eth2file
file:///misc/hadaq/cvsroot/rpctrbetrax/ram2eth
-- response for receiving data from ram2eth and save it to the file 'TDC_data.dat'.
Except these files there exists the script:
-- set up the port B && start the ram2eth application with 2 parameters:
- number IP of the server,
- 1 or 0 - save(=1) or not(=0) the data to the local file on etrax. This script takes one argument: number of triggers
Example:
/mnt/flash/Ram2Eth.sh 10000
RECAPITULATION:
One should start:
-
./eth2file
on the machine where the TDC_data should be saved;
-
/mnt/flash/Ram2Eth.sh _num_of_triggers_
on the Etrax
--
RadekTrebacz - 12 Jul 2005