Welcome to caen_vme’s documentation!

Installation

Follow the client and/or server instructions in the Installation section or the INSTALL file.

Getting Started

Running the Server

If you have not already set up a server, then you can set up the ZMQ server by running:

$ run_caen_vme_server [address] [port]

where [address] is the base address of the CAEN board set on switches on the physical board, and [port] is any high number you want (>1000). For example:

$ run_caen_vme_server 0x550000 5555

If you would like to set the server up to run automatically when the computer boots then add the following line to /etc/rc.local:

su - [user] -c "run_caen_vme_server [address] [port] &"

Running the Client

To obtain a calibration of the pedestals first run:

$ calibrate_caen_vme [ipaddr] [port] -n 1000

where [port] is whatever port you set the server up with.

After this script finishes you can now take data. For example, to take data using a software trigger you may run:

$ python
>>> from zmq_client import *
>>> import matplotlib.pyplot as plt
>>> v = V1729Client([ipaddr],[port])
>>> v.start_acquisition()
>>> v.software_trigger()
>>> data = adc_to_voltage(v.data())
>>> plt.plot(data)
>>> plt.show()

The source code for this software can be found at https://bitbucket.org/sarkozy/caen_vme.

Contents:

Indices and tables