Overview
This software is used to readout the FDAQ box developed at X10SA. On The FDAQ box there are 2 socket servers, one for retrieving the data and one for resetting the socket server for data retrieval.
The fdaq code provides exactly 2 functionalities. It can query on the data socket for data (need to specifying how many data point to read), and it can send a reset request on the reset channel.
Usage
To acquire data into a file use:
java -jar ch.psi.fda.fdaq-<version>.jar <file>
You can terminate the acquisition with CTRL+C. If you submit 2 consequtive CTRL+C the program will terminate immediately (and data might be lost);
This will take the default connections settings:
- Hostname: mchip015.psi.ch
- Port: 2233
- Kill Port: 2234
- Number Of Elements: Integer.MAX_VALUE/2
If you need to specify different settings create a property files with following content:
ch.psi.fda.fdaq.hostname=myhost
ch.psi.fda.fdaq.port=1234
ch.psi.fda.fdaq.killPort=4321
Use -Dch.psi.fda.fdaq.config.file=<file> to use this property file as base configuration.
Development
A standalone jar can be build via mvn clean compile assembly:single.
To upload the latest version to the artifact repository use mvn clean compile deploy.
Notes
Trigger port is Trigger In 1. For testing apply a 1kHz signal.