GithubHelp home page GithubHelp logo

leadmocha / coda_scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeffersonlab/coda_scripts

0.0 0.0 0.0 40 KB

A collection of useful scripts to use with CODA

Shell 96.92% Tcl 3.08%

coda_scripts's Introduction

coda_scripts

A collection scripts for use with small scale DAQs running CODA 3

Install and Configuration

  • Setup host ssh key for automated login to CODA component clients.

  • Install scripts on CODA 3 Platform host, ROC and PEB clients.

    • With git

      git clone [email protected]:JeffersonLab/coda_scripts.git ~/coda3/coda_scripts-master
      
    • From zip

      unzip coda_scripts-master.zip ~/coda3/
      
    • If you're not sharing this directory with the CODA Components (e.g. with NFS), repeat this step for each component.

  • Configure environment variables in setupCODA3.tcsh or setupCODA3.bash

    • These environment variables are specific to your setup.

      setenv CODA /site/coda/3.10
      source $CODA/.setup
      
      setenv SESSION session
      setenv EXPID expid
      
      setenv COOL_HOME ${HOME}/coda3/cool
      setenv JAVA_HOME ${HOME}/jdk1.8.0_152
      
      setenv REMEX_CMSG_HOST thishost.jlab.org
      setenv REMEX_CMSG_PASSWORD ${EXPID}
      
      setenv CODA_COMPONENT_TABLE ${CODA_CONFIG}/config/${EXPID}/coda_component_table.cfg
      
  • Source the setupCODA3.{tcsh,bash} in shell setup file for each DAQ component

    • In .bashrc

      export CODA_CONFIG=~/coda3/coda_scripts-master
      source $CODA_CONFIG/setupCODA3.bash
      
    • In .tcshrc

      setenv CODA_CONFIG=~/coda3/coda_scripts-master
      source $CODA_CONFIG/setupCODA3.tcsh
      
    • Modify the config file adding each DAQ component on the host

      • The file defined by $CODA_COMPONENT_TABLE specifies the components that will interact with these scripts

      • File format:

        HOSTNAME COMPONENT_TYPE COMPONENT_NAME OPTIONAL_ARG

      • For example, I have a PEB named PEB1 running on daqpc1:

        daqpc1 PEB PEB1

      • For example, I have a ROC named ROC2 running on daqroc2 and needs to run a tcl script to set it's randy factor on startup:

        daqroc2 ROC ROC2 -t setrf.tcl

Howto Use

  • If you have an empty COOL_HOME (otherwise, skip this step)

    • Run jcedit
    • Create new COOL database
    • Expert -> Session -> New
      • Enter SESSION name (matches that defined in environment)
  • Launch CODA3 and its components

      startCoda
    
  • Restart ONLY the PEB and ROC components

      restartStuff
    
  • Kill ALL CODA components started by startCoda

      kcoda
    

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.