... | ... | @@ -88,35 +88,12 @@ packages installed on your system. |
|
|
|
|
|
## Test program
|
|
|
|
|
|
### Introduction
|
|
|
|
|
|
The test program is used to check the proper behavior of the board in
|
|
|
case of failure or to check if there is a bug in the driver or in the
|
|
|
library.
|
|
|
The test program has an CLI interface due to some limitations when
|
|
|
accessing remotely to the machine. It is designed to allow the execution
|
|
|
of the program under SSH.
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
|
- Python 2.7 or higher.
|
|
|
|
|
|
First of all, before execute it, you should compile the shared object
|
|
|
library:
|
|
|
|
|
|
cd <path_fmc-tdc-sw>/lib
|
|
|
make libtdc.so
|
|
|
|
|
|
### How to use it
|
|
|
|
|
|
To execute it:
|
|
|
|
|
|
cd <path_fmc-tdc-sw>/test
|
|
|
sudo ./test-fmctdc.py
|
|
|
|
|
|
If you want the help, you can execute:
|
|
|
All the test programs have an help message (`-h`)
|
|
|
|
|
|
./test-fmctdc.py -h
|
|
|
- *fmc-tdc-list*: it shows the available TDC device
|
|
|
- *fmc-tdc-term*: it changes the 50Ohm channel termination
|
|
|
- *fmc-tdc-temperature*: it shows the TDC device temperature
|
|
|
- *fmc-tdc-tstamp*: it shows the incoming timestamps
|
|
|
|
|
|
-----
|
|
|
|
... | ... | |