Frame source now defaults to EXTERNAL if setting a non-zero frame frequency.

r2251 | ffr | 2007-11-09 08:34:17 +1100 (Fri, 09 Nov 2007) | 2 lines
This commit is contained in:
Ferdi Franceschini
2007-11-09 08:34:17 +11:00
committed by Douglas Clowes
parent 3489c4c7cc
commit 3d81b204d6

View File

@@ -1,5 +1,5 @@
# $Revision: 1.25 $
# $Date: 2007-11-07 04:47:34 $
# $Revision: 1.26 $
# $Date: 2007-11-08 21:34:17 $
# Author: Ferdi Franceschini
# Based on the examples in the hs_test.tcl sample configuration by Mark Lesha.
# http://gumtree.ansto.gov.au:9080/nbicms/bragg-systems/histogram-server/hs_test.tcl/view
@@ -943,11 +943,11 @@ proc ::histogram_memory::get_frame_freq {} {
# @brief Sets the histogram memory frame frequency to the given value.
#
# @param freq Frequency in Hz.\n
# @param frame_source INTERNAL (default) or EXTERNAL
# @param frame_source INTERNAL or EXTERNAL(default)
#
# If freq=0 then it sets the frequency to 50Hz with an internal frame source. This is useful
# if you are setting the frequency from a chopper which is stopped.
proc ::histogram_memory::set_frame_freq {freq {frame_source INTERNAL}} {
proc ::histogram_memory::set_frame_freq {freq {frame_source EXTERNAL}} {
variable state
# Frame source for each instrument if freq = 0, this can happen when automatically
# setting frequencies from choppers.