Skip to content

NSLS2/GeRM

Repository files navigation

support for GeRM

This includes

Testing

To test this locally (with out access to a real detector), first start the detector simulation

python cli/det_sim.py

Then the IOC

python cli/germ_ioc.py localhost

If starting the IOC against the real device use

python cli/germ_ioc.py 10.60.0.160

To test the python side, first fire up IPython

ipython

and then run the example configuration:

%run -i config/97-germ.py

You should then have RE (the RunEngine), db (a DataBroker instance), and germ (the GeRM device) in your local namespace.

To run a simple count

RE(bp.count([germ]))

and get the header for than run back:

h = db[-1]

To plot a energy bin by channel heat-map:

img = make_mars_heatmap(h, np.linspace(0, 4000, 4000))
fig, ax = plt.subplots()
ax.imshow(img, aspect='auto')

or a counts per channel histogram:

channel_counts = make_mars_line(h):
fig, ax = plt.subplots()
plt.plot(channel_counts)

Running

source activate germ_ioc
python cli/germ_ioc_udp.py 10.28.0.48 10.28.0.210

may need to resart if handshaking with collector gets out of sync

User interface

Editor

PYQTDESIGNERPATH=/home/xf28id1/src/pydm:$PYQTDESIGNERPATH designer
pydm germdm/main.ui

About

Software for Germanium Readout Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published