Coder Social home page Coder Social logo

gmdsimioc's Introduction

gmdSimIoc

Summary

Repository for a simulated X(GMD) device.

This repository contains a simple simulation IOC for the LCLS (X)GMD devices using Caproto.

The IOC takes an input .csv file of array data and will continuously loop through the supplied data. Additional controls are discussed below.

Usage

Starting the IOC

The python environment requires that you have Caproto available, as well as numpy. In the LCLS ECS environment you can get a conda environment with these requirements and more by running:

source /cds/group/pcds/pyps/conda/py36env.sh

Once you have the proper environment you can run the IOC and supply a data file. For example:

./gmdSimIoc.py --datafile good_xgmd_electron.csv

Using the IOC

You can see all of the available PVs by adding --list-pvs to the above start command:

./gmdSimIoc.py --datafile good_xgmd_electron.csv --list-pvs 

A simple EDM screen is provided in the repository. This screen can be launched (assuming you have access to EDM in your environment) using the included shell script:

./gmdSimScreen.sh

Using your own data

There are a few datafiles for testing provided in the repository, but you could use data from other (X)GMD experiments. There is a helper script included for creating files that can be read by the IOC using the LCLS psana system. To use this script you will need to be logged into an LCLS psana machine and have the LCLS-II psana environment. Example below:

ssh psana
source /cds/sw/ds/ana/conda2/manage/bin/psconda.sh

The script takes four arguments: experiment, run number, detector name, and the output .csv file name. Example:

./make_test_data.py tmo43218 28 xgmdstr0 my_output_file.csv

gmdsimioc's People

Contributors

slactjohnson avatar

Stargazers

Ken Lauer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.