Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
daq:docss800grt [2015/10/02 14:00] weisshaa |
daq:docss800grt [2015/10/02 22:27] weisshaa |
||
---|---|---|---|
Line 42: | Line 42: | ||
#------------------- Begin ReadoutCallouts.tcl --------------------------- | #------------------- Begin ReadoutCallouts.tcl --------------------------- | ||
+ | |||
## | ## | ||
# This section of the script adds the GRETINA and NSCLDAQ Tcl libraries to the | # This section of the script adds the GRETINA and NSCLDAQ Tcl libraries to the | ||
Line 78: | Line 78: | ||
## | ## | ||
- | # 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. |
- | # - The S800 dataflow ring buffers are in this system. | + | # - The S800 dataflow ring buffers are in this system. |
- | # | + | # |
- | set s800host spdaq19 | + | set s800host spdaq19 |
- | set S800ToGretina::S800Host $s800host | + | set S800ToGretina::S800Host $s800host |
- | + | | |
- | ## | + | ## |
- | # The IMPSYNC button forces GRETINA to perform an imperative sychronization | + | # The IMPSYNC button forces GRETINA to perform an imperative sychronization |
- | # of the clock. In the normal GRETINA + S800 runs this is done automatically | + | # of the clock. In the normal GRETINA + S800 runs this is done automatically |
- | # when the run begins. In the 'infinity clock' mode, when DDAS systems are | + | # when the run begins. In the 'infinity clock' mode, when DDAS systems are |
- | # added, this is done manually. Set the variable below to 0 to enable | + | # added, this is done manually. Set the variable below to 0 to enable |
- | # manual imperative synchronization when the run is active. Otherwise | + | # manual imperative synchronization when the run is active. Otherwise |
- | # | + | # |
- | set disableImpSyncButton 1 | + | set disableImpSyncButton 1 |
- | + | | |
- | + | | |
- | ## | + | ## |
- | # Intializes the GRETINA extensions to the ReadoutGUI. This also adds the | + | # Intializes the GRETINA extensions to the ReadoutGUI. This also adds the |
- | # GRETINA specific bits of the user interface. | + | # GRETINA specific bits of the user interface. |
- | # | + | # |
- | mergedCallouts::Initialize | + | mergedCallouts::Initialize |
- | + | | |
- | ## | + | ## |
- | # Begin run actions: | + | # Begin run actions: |
- | # | + | # |
- | proc OnBegin runNumber { | + | proc OnBegin runNumber { |
+ | | ||
## | ## | ||
# With GRETINA, all data recording is perfromed on GRETINA | # With GRETINA, all data recording is perfromed on GRETINA | ||
Line 112: | Line 112: | ||
# | # | ||
::ReadoutGUIPanel::recordOff | ::ReadoutGUIPanel::recordOff | ||
+ | |||
## | ## | ||
# Starts GRETINA | # Starts GRETINA | ||
Line 123: | Line 123: | ||
.impsync configure -state disabled | .impsync configure -state disabled | ||
} | } | ||
- | + | ||
- | } | + | } |
- | ## | + | ## |
- | # End run actions (called after the s800 has been asked to stop) | + | # End run actions (called after the s800 has been asked to stop) |
- | # | + | # |
- | proc OnEnd runNumber { | + | proc OnEnd runNumber { |
## | ## | ||
# Asks GRETINA to end its run. | # Asks GRETINA to end its run. | ||
Line 145: | Line 145: | ||
set ::EventLog::needFinalization 1 | set ::EventLog::needFinalization 1 | ||
::EventLog::_finalizeRun | ::EventLog::_finalizeRun | ||
- | + | ||
- | } | + | } |
- | #-------------------- End ReadoutCallouts.tcl --------------------- | + | #-------------------- End ReadoutCallouts.tcl --------------------- |
- | + | | |
- | + | | |
- | 3.2 Using the GUI: | + | 3.2 Using the GUI: |
- | + | | |
- | Once your ReadoutCallouts.tcl is installed: | + | Once your ReadoutCallouts.tcl is installed: |
- | + | | |
- | - Ensure the S800 Readout GUI is running in spdaq19. | + | - Ensure the S800 Readout GUI is running in spdaq19. |
- | - Start the GUI with | + | - Start the GUI with |
- | + | | |
- | $DAQBIN/ReadoutShell | + | $DAQBIN/ReadoutShell |
- | + | | |
- | + | | |
- | - Click the 'Start' Button. This takes control of the S800 system. | + | - Click the 'Start' Button. This takes control of the S800 system. |
- | - Once the S800 has been put in remote control, you can start/stop | + | - Once the S800 has been put in remote control, you can start/stop |
- | runs as you would normally do. | + | runs as you would normally do. |
- | + | | |
- | 4. The Big LED. | + | 4. The Big LED. |
- | + | | |
- | This is an application that displays the GRETINA global alarm state as | + | This is an application that displays the GRETINA global alarm state as |
- | either a big Green (no alarm) or big Red (alarm) circle or 'led' | + | either a big Green (no alarm) or big Red (alarm) circle or 'led' |
- | + | | |
- | + | | |
- | To run it: | + | To run it: |
- | + | | |
- | $GRTOP/bin/bigled [size-in-pixels] | + | $GRTOP/bin/bigled [size-in-pixels] |
- | + | | |
- | The optional size-in-pixels parameter controls the size of the led. | + | The optional size-in-pixels parameter controls the size of the led. |
- | If omitted a 'reasonable' default size is used. | + | If omitted a 'reasonable' default size is used. |
- | + | | |
- | 5. GRETINA Emergency stop button. | + | 5. GRETINA Emergency stop button. |
- | + | | |
- | If the s800 readout or GUI fail, or for some reason the GRETINA GUI becomes | + | If the s800 readout or GUI fail, or for some reason the GRETINA GUI becomes |
- | unresponsive, it may be necessary to stop the GRETINA. | + | unresponsive, it may be necessary to stop the GRETINA. |
- | + | | |
- | $GRTOP/bin/emstop | + | $GRTOP/bin/emstop |
- | + | | |
- | Displays the current global GRETINA state and provides a button | + | Displays the current global GRETINA state and provides a button |
- | that allows you to request GRETINA to end its run. | + | that allows you to request GRETINA to end its run. |
- | + | | |
+ | |