Commit Graph

777 Commits

Author SHA1 Message Date
Ferdi Franceschini
16ec7dddff Added the "is_drivable" query. This is useful for scan commands.
Added some error checking.

r2212 | ffr | 2007-10-31 17:15:17 +1100 (Wed, 31 Oct 2007) | 3 lines
2012-11-15 13:27:52 +11:00
Ferdi Franceschini
991662fa5d The fake motors now work with the current motor driver.
r2211 | ffr | 2007-10-31 17:10:30 +1100 (Wed, 31 Oct 2007) | 2 lines
2012-11-15 13:27:48 +11:00
Ferdi Franceschini
34c0c59594 eval the "drive" command to make sure that the parameters aren't interpreted as a single list value.
r2210 | ffr | 2007-10-31 17:09:45 +1100 (Wed, 31 Oct 2007) | 2 lines
2012-11-15 13:27:44 +11:00
Ferdi Franceschini
a182c2f60b Code cleanup
r2209 | ffr | 2007-10-31 17:07:10 +1100 (Wed, 31 Oct 2007) | 2 lines
2012-11-15 13:27:41 +11:00
Ferdi Franceschini
f7d01ceb6b Implemented ::scan::pre_hmm_scan_prepare hook to make sure that the chopper is ready before commencing a scan.
r2208 | ffr | 2007-10-31 17:05:15 +1100 (Wed, 31 Oct 2007) | 2 lines
2012-11-15 13:27:37 +11:00
Ferdi Franceschini
5b5b3b4cc8 Use x,y bin boundaries for histogram horizontal and vertical axes.
Set the hmm frequency with the ::histogram_memory::set_frame_freq command to make sure that the maximum time bin is set properly.

r2207 | ffr | 2007-10-31 17:03:01 +1100 (Wed, 31 Oct 2007) | 3 lines
2012-11-15 13:27:33 +11:00
Ferdi Franceschini
03b583655c Added chopper "ready?" query and "get_frequency" command.
Also added chopper simulation mode.

r2206 | ffr | 2007-10-31 17:00:54 +1100 (Wed, 31 Oct 2007) | 3 lines
2012-11-15 13:27:30 +11:00
Ferdi Franceschini
c661cf16a7 Check that the instrument is ready before starting a scan.
Added "runscan" command using syntax requested by Andy Nelson for platypus.

r2205 | ffr | 2007-10-31 16:51:16 +1100 (Wed, 31 Oct 2007) | 3 lines
2012-11-15 13:27:26 +11:00
Ferdi Franceschini
f8c64b55a0 Save scratch files in data directory.
Refactor to have explicit ::nexus:: prefix on procedures.

r2204 | ffr | 2007-10-31 16:44:38 +1100 (Wed, 31 Oct 2007) | 3 lines
2012-11-15 13:27:22 +11:00
Ferdi Franceschini
5c66aa29ac Histogram memory data acquisition is now controlled by the histogram server.
Implemented "histmem" convenience command for use on command line and in batch files.
Make sure that the maximum time bin is set when setting the histogram memory frame frequency.
x_bin and y_bin axes are now available for nexus data entries.

r2203 | ffr | 2007-10-31 16:39:00 +1100 (Wed, 31 Oct 2007) | 5 lines
2012-11-15 13:27:19 +11:00
Ferdi Franceschini
f54146b58e Added ::plc::inst_ready command which is used to check if the instrument is ready before starting a scan.
Also add plc simulation mode

r2202 | ffr | 2007-10-31 15:54:49 +1100 (Wed, 31 Oct 2007) | 3 lines
2012-11-15 13:27:15 +11:00
Douglas Clowes
9a2e98a0e3 Include motor_utility.tcl
r2200 | dcl | 2007-10-29 14:00:55 +1100 (Mon, 29 Oct 2007) | 2 lines
2012-11-15 13:27:08 +11:00
Douglas Clowes
317c7398ca Move functions to motor_utility
r2199 | dcl | 2007-10-29 13:59:58 +1100 (Mon, 29 Oct 2007) | 2 lines
2012-11-15 13:27:04 +11:00
Douglas Clowes
506bb5febc Functions for creating and supporting motors
r2198 | dcl | 2007-10-29 13:58:12 +1100 (Mon, 29 Oct 2007) | 2 lines
2012-11-15 13:27:00 +11:00
Douglas Clowes
d5a0489a3b commissioning refinement
r2197 | dcl | 2007-10-26 10:59:12 +1000 (Fri, 26 Oct 2007) | 2 lines
2012-11-15 13:26:57 +11:00
Ferdi Franceschini
f33f62ba20 Added pre_count method which sets the histogram frame frequency from the chopper frequency.
r2196 | ffr | 2007-10-23 14:01:36 +1000 (Tue, 23 Oct 2007) | 2 lines
2012-11-15 13:26:53 +11:00
Ferdi Franceschini
a35b5573cf Added dy attributes required for building hdb tree.
r2195 | ffr | 2007-10-23 13:59:36 +1000 (Tue, 23 Oct 2007) | 2 lines
2012-11-15 13:26:49 +11:00
Ferdi Franceschini
3fcb976816 Optics subsystem.
Currently only guide configuration is implemented.

r2194 | ffr | 2007-10-23 12:59:44 +1000 (Tue, 23 Oct 2007) | 3 lines
2012-11-15 13:26:46 +11:00
Ferdi Franceschini
3077fddc3b We now take care of our own copy of the astrium chopper driver. It has the following changes.
Status is now updated on demand.
A status request returns a ready status message for the chopper as well as updating the chopper parameters.
We don't compensate for MW CMW on choppers 2 and 3.
PHASETOL=0.2
You can read the frequency from chopper one.

r2193 | ffr | 2007-10-23 12:58:13 +1000 (Tue, 23 Oct 2007) | 8 lines
2012-11-15 13:26:42 +11:00
Ferdi Franceschini
3a7e6a9768 Added "abortbatch" command for use within batch files.
It gives a user the option of  aborting a batch file if their code detects an error.

r2192 | ffr | 2007-10-23 12:46:16 +1000 (Tue, 23 Oct 2007) | 3 lines
2012-11-15 13:26:38 +11:00
Ferdi Franceschini
7b0162177e Added optics subsystem path.
Also added chopper_simulation flag for platypus.

r2191 | ffr | 2007-10-23 12:42:52 +1000 (Tue, 23 Oct 2007) | 3 lines
2012-11-15 13:26:35 +11:00
Ferdi Franceschini
2018e71b8f Set rank for hmm objects.
r2190 | ffr | 2007-10-23 12:41:00 +1000 (Tue, 23 Oct 2007) | 2 lines
2012-11-15 13:26:31 +11:00
Ferdi Franceschini
8b1996996a Terminition conditions when acquiring detector data are now controlled by the histogram server instead of the beam monitor. So more termination methods are now available and timed counts should be more precise.
hmm_configuration_common_1.tcl
Map hmm dim0,1,2 to histogram server OAT dimensions.
Added commands to set the histogram server count method, size and stop condition.

scan_common_1.tcl
hmscan is now controlled by the histogram server instead of the beam monitor.
NOTE: the mode and preset parameters for hmscan run are now ignored in favour of the parameters set on the hmm object.

r2189 | ffr | 2007-10-23 12:40:09 +1000 (Tue, 23 Oct 2007) | 10 lines
2012-11-15 13:26:27 +11:00
Ferdi Franceschini
8e6d4e4da6 hipadaba_configuration_common.tcl
Check all kinds of hdb nodes for units.

nxscripts_common_1.tcl
Make units optional when saving data.
Catch histogram memory savecmd errors.

r2188 | ffr | 2007-10-23 12:32:41 +1000 (Tue, 23 Oct 2007) | 7 lines
2012-11-15 13:26:23 +11:00
Douglas Clowes
9c307402cc Fix a couple of typos, reimplement thread zero checks and amplifier error checks. (Disable amplifier error checks pending controllers returning good status for all OK motors.)
r2187 | dcl | 2007-10-22 13:26:54 +1000 (Mon, 22 Oct 2007) | 2 lines
2012-11-15 13:26:20 +11:00
Douglas Clowes
6c357b6fdc commissioning iteration
r2186 | dcl | 2007-10-22 13:24:33 +1000 (Mon, 22 Oct 2007) | 2 lines
2012-11-15 13:26:16 +11:00
Douglas Clowes
a4d7cb12cc Begin migration of motor positions from encoder counts to motor units (mm/degree)
r2185 | dcl | 2007-10-17 08:36:19 +1000 (Wed, 17 Oct 2007) | 2 lines
2012-11-15 13:26:13 +11:00
Douglas Clowes
9052167b7f Rename Physical Collimator motors from cx to pcx and virtual motors from vc0x to cx
r2184 | dcl | 2007-10-17 08:35:07 +1000 (Wed, 17 Oct 2007) | 2 lines
2012-11-15 13:26:09 +11:00
Douglas Clowes
5d311bf61f A bit more rationalisation
r2183 | dcl | 2007-10-11 18:00:02 +1000 (Thu, 11 Oct 2007) | 2 lines
2012-11-15 13:26:05 +11:00
Douglas Clowes
34d8abac97 convert radians to degrees
r2182 | dcl | 2007-10-11 17:58:54 +1000 (Thu, 11 Oct 2007) | 2 lines
2012-11-15 13:26:02 +11:00
Douglas Clowes
50ac8c30e7 commissioning iteration
r2181 | dcl | 2007-10-11 17:57:58 +1000 (Thu, 11 Oct 2007) | 2 lines
2012-11-15 13:25:58 +11:00
Douglas Clowes
e04b31a2b8 Turn axis F motor on/off
r2180 | dcl | 2007-10-09 11:44:16 +1000 (Tue, 09 Oct 2007) | 2 lines
2012-11-15 13:25:54 +11:00
Douglas Clowes
4c569fcd5e Fix typo in variable name
r2179 | dcl | 2007-10-09 09:28:53 +1000 (Tue, 09 Oct 2007) | 2 lines
2012-11-15 13:25:50 +11:00
Douglas Clowes
79595e0e03 Generated files
r2178 | dcl | 2007-10-05 12:01:17 +1000 (Fri, 05 Oct 2007) | 2 lines
2012-11-15 13:25:47 +11:00
Douglas Clowes
06fba540ec Commissioning iteration
r2177 | dcl | 2007-10-05 11:55:46 +1000 (Fri, 05 Oct 2007) | 2 lines
2012-11-15 13:25:43 +11:00
Douglas Clowes
5ee42733ba Commissioning iteration
r2176 | dcl | 2007-10-04 09:15:02 +1000 (Thu, 04 Oct 2007) | 2 lines
2012-11-15 13:25:40 +11:00
Ferdi Franceschini
d8117b6b8b histogram_memory::setmode is obsolete.
So it's gone.

r2175 | ffr | 2007-10-04 08:33:28 +1000 (Thu, 04 Oct 2007) | 3 lines
2012-11-15 13:25:36 +11:00
Ferdi Franceschini
3ff8fe35a9 Remove debugging message.
r2174 | ffr | 2007-10-03 11:57:37 +1000 (Wed, 03 Oct 2007) | 2 lines
2012-11-15 13:25:32 +11:00
Ferdi Franceschini
8fa8fd8806 Don't upload the histogram server configuration twice.
r2173 | ffr | 2007-10-03 11:55:12 +1000 (Wed, 03 Oct 2007) | 2 lines
2012-11-15 13:25:29 +11:00
Ferdi Franceschini
67a8a8c0c3 Fixed maximum and minimum bin boundaries.
Code cleanup.

r2172 | ffr | 2007-10-03 10:08:40 +1000 (Wed, 03 Oct 2007) | 3 lines
2012-11-15 13:25:25 +11:00
Ferdi Franceschini
75e7862cc6 Fix order of axes to match the order in which the histogram memory is written
ie Time, Vertical, Horizontal.

r2171 | ffr | 2007-10-03 10:07:27 +1000 (Wed, 03 Oct 2007) | 3 lines
2012-11-15 13:25:21 +11:00
Douglas Clowes
67810158ee refactor SZ steps and counts equations
r2170 | dcl | 2007-10-02 12:43:43 +1000 (Tue, 02 Oct 2007) | 2 lines
2012-11-15 13:25:18 +11:00
Douglas Clowes
dc266a1c92 convert 'send' arguments to upper case and substitute '%' and '`' with axis_label
r2169 | dcl | 2007-10-02 12:41:34 +1000 (Tue, 02 Oct 2007) | 2 lines
2012-11-15 13:25:14 +11:00
Douglas Clowes
f7cce8d15a Commissioning changes
r2168 | dcl | 2007-10-02 11:31:00 +1000 (Tue, 02 Oct 2007) | 2 lines
2012-11-15 13:25:11 +11:00
Ferdi Franceschini
72e0d389e5 Calculate non-overlapping UID based port numbers when running sics from your home directory
r2167 | ffr | 2007-09-26 16:23:57 +1000 (Wed, 26 Sep 2007) | 2 lines
2012-11-15 13:25:07 +11:00
Ferdi Franceschini
a173158d0e Create extra hmm objects to fetch xy, yt, t, ..., etc. data from the histogram server.
r2166 | ffr | 2007-09-26 16:22:43 +1000 (Wed, 26 Sep 2007) | 2 lines
2012-11-15 13:25:03 +11:00
Ferdi Franceschini
0edaa1d5d0 Added code and filetype spec for data file policy
Added  environment controller save and sdsinfo commands.
Dynamically set histogram memory rank and dimensions for data file

r2165 | ffr | 2007-09-26 16:21:23 +1000 (Wed, 26 Sep 2007) | 4 lines
2012-11-15 13:25:00 +11:00
Ferdi Franceschini
7722ccaff3 Cosmetic changes.
r2164 | ffr | 2007-09-26 16:19:39 +1000 (Wed, 26 Sep 2007) | 2 lines
2012-11-15 13:24:56 +11:00
Ferdi Franceschini
f78b9cefd3 Removed obsolete tables from the histogram memory configuration.
r2163 | ffr | 2007-09-26 16:19:06 +1000 (Wed, 26 Sep 2007) | 2 lines
2012-11-15 13:24:52 +11:00
Ferdi Franceschini
9e170b66d3 Removed 'event' and 'ilist' kind for SICS objects.
r2162 | ffr | 2007-09-26 16:17:51 +1000 (Wed, 26 Sep 2007) | 2 lines
2012-11-15 13:24:49 +11:00