Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
daq:docss800grt [2015/10/02 13:59] weisshaa |
daq:docss800grt [2015/10/02 14:00] weisshaa |
||
---|---|---|---|
Line 19: | Line 19: | ||
installed (e.g. /usr/opt/gretina/2.0-004) will be called $GRTOP | installed (e.g. /usr/opt/gretina/2.0-004) will be called $GRTOP | ||
- | 2. Setting up environment variables: | + | 2. Setting up environment variables: |
+ | |||
+ | A script $GRTOP/bin/gretinaSetup defines several environment variables. | ||
+ | Incorporate those into your shell by: | ||
+ | |||
+ | . $GRTOP/bin/gretinaSetup | ||
+ | |||
+ | (e.g. . /usr/opt/gretina/2.0-004/bin/gretinaSetup) | ||
+ | |||
+ | This script will also source the environment setup script for the version of | ||
+ | NSCLDAQ with with which the gretina software is associated. | ||
+ | |||
+ | All future recipes assume that this script has been sourced. | ||
+ | |||
+ | 3. Using the ReadoutGUI: | ||
+ | |||
+ | 3.1 The ReadoutCallouts.tcl script. | ||
+ | |||
+ | Here is a miniml ReadoutCallouts.tcl script for Gretina: | ||
+ | Comments have been added to describe what is happening at each step: | ||
+ | |||
+ | |||
+ | #------------------- Begin ReadoutCallouts.tcl --------------------------- | ||
- | A script $GRTOP/bin/gretinaSetup defines several environment variables. | + | ## |
- | Incorporate those into your shell by: | + | # This section of the script adds the GRETINA and NSCLDAQ Tcl libraries to the |
- | + | # Tcl package load path. Key points: | |
- | . $GRTOP/bin/gretinaSetup | + | # - VERSION is the version of the GRETINA software you are using. This |
- | + | # needs to be changed if the GRETINA software version changes. | |
- | (e.g. . /usr/opt/gretina/2.0-004/bin/gretinaSetup) | + | # |
- | + | | |
- | This script will also source the environment setup script for the version of | + | set daqroot $::env(DAQROOT) |
- | NSCLDAQ with with which the gretina software is associated. | + | lappend auto_path [file join $daqroot TclLibs] |
- | + | set TOP /usr/opt | |
- | All future recipes assume that this script has been sourced. | + | set VERSION 2.0-004 |
- | + | lappend auto_path [file join $TOP gretina $VERSION TclLibs] | |
- | 3. Using the ReadoutGUI: | + | |
- | + | | |
- | 3.1 The ReadoutCallouts.tcl script. | + | ## |
- | + | # Sets the window title for the GRETINA run control | |
- | Here is a miniml ReadoutCallouts.tcl script for Gretina: | + | # |
- | Comments have been added to describe what is happening at each step: | + | wm title . "S800/Gretina Run control" |
- | + | | |
- | + | ## | |
- | #------------------- Begin ReadoutCallouts.tcl --------------------------- | + | # Loads the code associated with the GRETINA/s800 merged readout |
- | + | # | |
- | ## | + | |
- | # This section of the script adds the GRETINA and NSCLDAQ Tcl libraries to the | + | package require mergedCallouts |
- | # Tcl package load path. Key points: | + | |
- | # - VERSION is the version of the GRETINA software you are using. This | + | ## |
- | # needs to be changed if the GRETINA software version changes. | + | # Loads a package that adds support to record data from 'upstream' ring buffers |
- | # | + | # in the S800 system. This creates a new menu entry in the Readout GUI |
- | + | # | |
- | set daqroot $::env(DAQROOT) | + | package require multilogger |
- | lappend auto_path [file join $daqroot TclLibs] | + | |
- | set TOP /usr/opt | + | # Set the hosts for stuff: |
- | set VERSION 2.0-004 | + | |
- | lappend auto_path [file join $TOP gretina $VERSION TclLibs] | + | |
- | + | ## | |
- | + | ||
- | ## | + | |
- | # Sets the window title for the GRETINA run control | + | |
- | # | + | |
- | wm title . "S800/Gretina Run control" | + | |
- | + | ||
- | ## | + | |
- | # Loads the code associated with the GRETINA/s800 merged readout | + | |
- | # | + | |
- | + | ||
- | package require mergedCallouts | + | |
- | + | ||
- | ## | + | |
- | # Loads a package that adds support to record data from 'upstream' ring buffers | + | |
- | # in the S800 system. This creates a new menu entry in the Readout GUI | + | |
- | # | + | |
- | package require multilogger | + | |
- | + | ||
- | # Set the hosts for stuff: | + | |
- | + | ||
- | + | ||
- | ## | + | |
# The S800 software runs in this system. Specifically: | # The S800 software runs in this system. Specifically: | ||
# - The S800 ReadoutGUI runs in this system. | # - The S800 ReadoutGUI runs in this system. |