Commit Graph

1278 Commits

Author SHA1 Message Date
Ferdi Franceschini
81f98bd337 commands_common.tcl
Added histmem and runscan command

hmm_configuration_common_1.tcl
Set histmem_cmd  status feedback to IDLE on COUNTEND event

nxscripts_common_1.tcl
When saving a set of files the time-stamp is offset from the time the first file is created.

scan_common_1.tcl
The hmscan hook functions now set feedback on the runscan_cmd

sct_positmotor_common.tcl
Added mk_sct_positmotor command to create a script context controller which runs a motor to an indexed position.

Added positmotor_configuration.tcl to echidna, wombat, kowari, quokka, platypus.

sans/config/motors/positmotor_configuration.tcl
Has an example of a positmotor configuration for the sample changer

sanx/quokka_configuration.tcl
Setup feedback nodes for AttRotDeg and RotApDeg.

motor_utility.tcl
Added reldrive and relrun commands along with getmotpar convenience command.

r2725 | ffr | 2008-10-27 15:55:48 +1100 (Mon, 27 Oct 2008) | 26 lines
2012-11-15 16:55:51 +11:00
Ferdi Franceschini
7ded983eba More common initialisation code has been moved from the instrument configuration files to server_config.tcl:server_init
server_init now handles restoring status before calling initialisation commands as well as loading extraconfig, building the HDB and catching errors.
Added dummy_motors in the motor_configuration.tcl files for automated tests.

sicshipadaba.c
Fix broken "hset /path start" by set connection object in command callback.

r2724 | ffr | 2008-10-20 11:08:31 +1100 (Mon, 20 Oct 2008) | 7 lines
2012-11-15 16:55:47 +11:00
Ferdi Franceschini
fb97ee8631 Refactored file saving.
r2723 | ffr | 2008-10-17 12:47:58 +1100 (Fri, 17 Oct 2008) | 2 lines
2012-11-15 16:55:42 +11:00
Rodney Davies
8f95806ecc Updated to send Jz prior to any voltage setting command
r2721 | rdd | 2008-10-14 11:35:35 +1100 (Tue, 14 Oct 2008) | 3 lines
2012-11-15 16:55:35 +11:00
Ferdi Franceschini
0adecdcec9 PSI UPDATE
r2720 | ffr | 2008-10-13 15:40:07 +1100 (Mon, 13 Oct 2008) | 2 lines
2012-11-15 16:53:52 +11:00
Ferdi Franceschini
f0973c6196 Restored file collection feature from 2.0 branch
r2718 | ffr | 2008-10-01 14:10:50 +1000 (Wed, 01 Oct 2008) | 2 lines
2012-11-15 13:43:24 +11:00
Ferdi Franceschini
82bebc6a5f The ::chopper::get_frequency comment was misleading.
r2709 | ffr | 2008-09-25 10:58:57 +1000 (Thu, 25 Sep 2008) | 2 lines
2012-11-15 13:43:20 +11:00
Ferdi Franceschini
815eeefc1c Incorporated the cg123He_temp local mod from the R2_1 deployment.
Added validation and fixed attributes.

r2708 | ffr | 2008-09-25 10:49:06 +1000 (Thu, 25 Sep 2008) | 3 lines
2012-11-15 13:43:16 +11:00
Ferdi Franceschini
e1978867e9 Set home for sx, sy, som, ephi, echi
Set motOffDelay for mtth
Enable sz and disable debug
Incorporated config parameter changes for sz,sy,som, stth, psho, psp, psw, ssho, ssp, ssw
Incorporated eulerian config: TODO Use a flag to select the eulerian config.

r2707 | ffr | 2008-09-25 09:42:08 +1000 (Thu, 25 Sep 2008) | 6 lines
2012-11-15 13:43:12 +11:00
Ferdi Franceschini
c30ce9c5a0 Added west400.tcl config to wombat config/environment/temperature
util/utility.tcl
The 'setpoint_script' for temperature controllers is now generated by '::utility::macro::getset'

r2706 | ffr | 2008-09-25 08:47:12 +1000 (Thu, 25 Sep 2008) | 5 lines
2012-11-15 13:43:08 +11:00
Ferdi Franceschini
1f755ccb0d Added allowed CAT_TABLE elements and echidna specific cat config
r2705 | ffr | 2008-09-24 14:28:45 +1000 (Wed, 24 Sep 2008) | 2 lines
2012-11-15 13:43:04 +11:00
Ferdi Franceschini
79d54fb1fe Generate md5 sums for SICS server files so we can check for local modifications
during a release cycle.

r2704 | ffr | 2008-09-24 12:23:41 +1000 (Wed, 24 Sep 2008) | 3 lines
2012-11-15 13:43:00 +11:00
Ferdi Franceschini
a2289207c0 Added RELEASE_NUMBER: reference in comments
r2703 | ffr | 2008-09-24 11:37:59 +1000 (Wed, 24 Sep 2008) | 2 lines
2012-11-15 13:42:56 +11:00
Ferdi Franceschini
805a66ea82 Transferred dhv1 limits from deployed Quokka detector config.
r2702 | ffr | 2008-09-24 10:51:03 +1000 (Wed, 24 Sep 2008) | 2 lines
2012-11-15 13:42:52 +11:00
Ferdi Franceschini
e1cea8763e common_instrument_dictionary.tcl
instrument/slits is now an NXaperture and collects all 'slits' objects.

instdict_specification.tcl
Added 'slits' to sobj_klass_list

motor_configuration.tcl files
Reverted 18/09/08

r2701 | ffr | 2008-09-24 08:44:01 +1000 (Wed, 24 Sep 2008) | 9 lines
2012-11-15 13:42:48 +11:00
Ferdi Franceschini
e1c9d6348d Fix invalid slit motor names.
Set correct IP address for detector voltage controller.

r2700 | ffr | 2008-09-22 16:42:08 +1000 (Mon, 22 Sep 2008) | 3 lines
2012-11-15 13:42:43 +11:00
Ferdi Franceschini
ab218f64b6 source_common.tcl
SICS-280 Check RCMS data-type and return -1 if it's invalid

motor_configuration.tcl files
Make sure that long_name matches data name for slit motors in data file.

hmm_configuration_common_1.tcl
SICS-268 Don't set VIEW_MAG_X/Y on histmem

r2699 | ffr | 2008-09-22 15:58:31 +1000 (Mon, 22 Sep 2008) | 9 lines
2012-11-15 13:42:39 +11:00
Ferdi Franceschini
538a36df3f Catch comms failure when creating asyncqueue
r2698 | ffr | 2008-09-22 10:35:34 +1000 (Mon, 22 Sep 2008) | 2 lines
2012-11-15 13:42:35 +11:00
Ferdi Franceschini
3afb9597f2 Fixed SICS-273: hnotify sends position updates for some stationary motors
Reverted change from rev 1.79 19-Aug-08
which was supposed to send IDLE state position updates if position change is greater than the precision.

r2697 | ffr | 2008-09-18 16:00:52 +1000 (Thu, 18 Sep 2008) | 5 lines
2012-11-15 13:42:31 +11:00
Ferdi Franceschini
7919c7cd6a Mark Lesha's fixes to the asyncqueue and voltage controller
r2696 | ffr | 2008-09-18 14:50:09 +1000 (Thu, 18 Sep 2008) | 2 lines
2012-11-15 13:42:27 +11:00
Ferdi Franceschini
70f194fe85 Standardised on using controlsensor = A and range = 5
r2695 | ffr | 2008-09-18 14:12:24 +1000 (Thu, 18 Sep 2008) | 2 lines
2012-11-15 13:42:23 +11:00
Ferdi Franceschini
cc640e2fb0 lakeshore340_common.tcl
Now supports creation of multiple lakeshore controller objects.

hmm_configuration_common_1.tcl
SICS-275 histmem command now rejects invalid frame source arguments

hipd/config/environment/temperature/lakeshore340.tcl
Now supports creation of multiple lakeshore controller objects.

wombat_configuration.tcl
Added example which creates two lakeshore controllers.

rsd/config/motors/motor_configuration.tcl
SICS-276 Disable debug mode on sz motor.

r2694 | ffr | 2008-09-18 12:20:09 +1000 (Thu, 18 Sep 2008) | 15 lines
2012-11-15 13:42:19 +11:00
Ferdi Franceschini
8b4c571d63 Code cleanup.
r2693 | ffr | 2008-09-17 08:40:39 +1000 (Wed, 17 Sep 2008) | 2 lines
2012-11-15 13:42:14 +11:00
Ferdi Franceschini
02015668e2 Mark Lesha fixed some bugs associated with "send"
r2692 | ffr | 2008-09-17 08:39:33 +1000 (Wed, 17 Sep 2008) | 2 lines
2012-11-15 13:42:10 +11:00
Ferdi Franceschini
801ec1430b The motor lowerlimits were being checked against the scan target position instead of the
scan start position.

r2691 | ffr | 2008-09-16 14:33:15 +1000 (Tue, 16 Sep 2008) | 3 lines
2012-11-15 13:42:06 +11:00
Ferdi Franceschini
7d36e98479 SICS-263 Provide access to histogram memory veto
Added a ::histogram_memory::veto proc but it can't be used yet because you need to run hmm init to update the veto flag

r2690 | ffr | 2008-08-29 22:22:53 +1000 (Fri, 29 Aug 2008) | 3 lines
2012-11-15 13:42:02 +11:00
Ferdi Franceschini
c35f37420e Added stitch ordering parameter
r2689 | ffr | 2008-08-29 22:18:17 +1000 (Fri, 29 Aug 2008) | 2 lines
2012-11-15 13:41:58 +11:00
Ferdi Franceschini
19e448cda7 Load the new eventutil.tcl
r2688 | ffr | 2008-08-29 22:14:19 +1000 (Fri, 29 Aug 2008) | 2 lines
2012-11-15 13:41:54 +11:00
Ferdi Franceschini
c6b5e65a71 SICS-264 Allow sequencing of motors while counting
A "waitfor" command has been implement which waits for an object to finish after running the given command.

r2687 | ffr | 2008-08-29 22:09:19 +1000 (Fri, 29 Aug 2008) | 3 lines
2012-11-15 13:41:50 +11:00
Ferdi Franceschini
c53b56b97b SICS-262 TC1 and TC2 sensor readings are duplicates of each other for lakeshore
An AsyncQueue is now being created for each temperature controller.

r2686 | ffr | 2008-08-29 21:55:02 +1000 (Fri, 29 Aug 2008) | 3 lines
2012-11-15 13:41:46 +11:00
Ferdi Franceschini
e390dcb920 SICS-261 hmscan aborts when instrument isn't ready
You can now call "force_scan" to force an hmscan

r2685 | ffr | 2008-08-29 21:47:57 +1000 (Fri, 29 Aug 2008) | 3 lines
2012-11-15 13:41:42 +11:00
Ferdi Franceschini
6a3b8e2f49 SICS-260: "File saving fails and aborts scans"
SICS was trying to save the AttRotDeg and RotApDeg status feedback nodes
The data property of the status feedback nodes has been set to false.

r2684 | ffr | 2008-08-29 21:38:20 +1000 (Fri, 29 Aug 2008) | 4 lines
2012-11-15 13:41:38 +11:00
Ferdi Franceschini
2b02d7d1f1 SICS-215, SICS-234 Fixed two-theta direction.
r2683 | ffr | 2008-08-29 01:24:56 +1000 (Fri, 29 Aug 2008) | 2 lines
2012-11-15 13:41:34 +11:00
Ferdi Franceschini
de037231a9 SICS-156 Correcting detector active width (3490.64mm)
r2682 | ffr | 2008-08-27 19:28:41 +1000 (Wed, 27 Aug 2008) | 2 lines
2012-11-15 13:41:30 +11:00
Ferdi Franceschini
5411611352 First draft of "action" and "waitacion" commands
r2681 | ffr | 2008-08-26 14:09:09 +1000 (Tue, 26 Aug 2008) | 2 lines
2012-11-15 13:41:26 +11:00
Ferdi Franceschini
06a18bc86d The two_theta configurable motor may have been made obsolete by the commands.tcl:omega_2theta command.
r2680 | ffr | 2008-08-26 09:09:50 +1000 (Tue, 26 Aug 2008) | 2 lines
2012-11-15 13:41:22 +11:00
Ferdi Franceschini
165f1b90a4 lakeshore340_common.tcl
Lakeshore controllers will be connected to the ca5-[instrument] moxa box
Default config parameters are now available via a tc_dfltPar array
IP and socket number are now mandatory when creating an ls340 object

hrpd/.../lakeshore340.tcl
Multiple lakeshores can now be added to the hdb tree

echidna_configuration.tcl
Provide example  for configuring two lakeshores

SICS-134 reflectometer/../commands.tcl
First draft of beam/attenuator command, currently sends POS=xx (this won't work)

reflectometer/../motor_configuration.tcl
Add bat position feedback via action

sans/../motor_configuration.tcl
Renamed action parameter (aoid) to "action"

server_config.tcl
Initialise motor movecount to 500 to reduce number of position updates by a factor of 50

SICS-134 action.c
Update the beam/attenuator command feedback variable when POS changes.

SICS-134 motor_dmc2280.c
Added PLP:BAT:POS status response handler for platypus bat position updates
Only send IDLE state position updates if position change is greater than the precision.
Rename action parameter (aoid) to "action"

r2679 | ffr | 2008-08-19 15:11:55 +1000 (Tue, 19 Aug 2008) | 31 lines
2012-11-15 13:41:17 +11:00
Ferdi Franceschini
8090104407 ##################################
SICS-226

util/utility.tcl
Added set_chopper_attributes to set hdb metadata on chopperadapters

server_config.tcl
Set hdb metadata on chopperadapters

hipadaba_configuration_common.tcl
:hdb::sobjadd can now add chopperadapters to the hdb tree
::hdb::cmd_par now preserves case when adding command parameters.

instdict_specification.tcl
Added chopperadapter sicstype and disk_chopper class

nxscripts_common_1.tcl
Added chopperadapter save and sdsinfo commands.

reflectometer/config/chopper/chopper.tcl
Set units on chopperadapters.

 ##################################

hipd,hrpd,rsd, /config/commands.tcl
Add instrument specific initialisation procedure for commands

reflectometer/config/commands.tcl
Created omega_2theta and set_mode commands from Andrew Nelson's procs in extraconfig.tcl

reflectometer/.../motor_configuration.tcl
Added ds and rs prefix to the two_theta drive and read scripts to prevent name collision with the two_theta procs in commans.tcl

SICS-108 reflectometer/../parameters.tcl
Added parameters for guide, slit and chopper distances and elements.

SICS-108 common_instrument_dictionary.tcl
Make parameters saveable

r2678 | ffr | 2008-08-18 13:01:29 +1000 (Mon, 18 Aug 2008) | 40 lines
2012-11-15 13:41:13 +11:00
Ferdi Franceschini
348bd3aed1 SICS-46
commands_common.tcl
Added ::motor::go_home command to run motors to their home positions.

hrpd,hipd,rsd,sans,reflectometer/commands.tcl
Initilise ::motor::is_homing_list for the ::motor::go_hom command

util/command.tcl
Allow an empty parameter list

server_config.tcl
Call the "commands" initilisation function on server init

motor_asim.c
Added the "home" parameter so we can test the go_home command

r2677 | ffr | 2008-08-14 15:00:18 +1000 (Thu, 14 Aug 2008) | 17 lines
2012-11-15 13:41:09 +11:00
Ferdi Franceschini
f7c357a56d SICS-251 Added transmission and beamcenter parameters
r2675 | ffr | 2008-08-13 14:41:05 +1000 (Wed, 13 Aug 2008) | 2 lines
2012-11-15 13:41:05 +11:00
Ferdi Franceschini
8a07f5eaf6 SICS-188 hdb_path is now a comma separated list of paths. NOTE: nodes listed as derived parameter dependencies aren't added to the path.
sans/config/hmm/detector.tcl
Use dns-name for voltage controller address.

sans/config/motors/motor_configuration.tcl
Set det home position.
SICS-122 Added FastShutter variable and configured det motor with an action object to set the FastShutter variable.
SICS-248 Replaced beamstop motor objects with beamstop action objects.

action.[ch]
The action object factory will eventuall be defined here.
SICS-122 Currently there is just a funcion which sets the FastShutter variable

beamstopaction.c
Added motion control enabled check.
Added "list" subcommand.

Makefile
Compile action.c

motor_dmc2280.c
The status check command now always checks the TI1 and TI0 interrupts.
Added action-object configuration parameter.  Call AO_istatus with TI1
if configured with an action object.

r2674 | ffr | 2008-08-13 14:16:30 +1000 (Wed, 13 Aug 2008) | 26 lines
2012-11-15 13:41:01 +11:00
Ferdi Franceschini
7c7ed6cbf9 SICS-188 hdb_path is now a comma separated list of paths.
NOTE: nodes listed as derived parameter dependencies aren't added to the path.

r2673 | ffr | 2008-08-07 16:43:57 +1000 (Thu, 07 Aug 2008) | 3 lines
2012-11-15 13:40:56 +11:00
Ferdi Franceschini
2567cde82b SICS-80 Updated detector y-motor (det) limits
r2672 | ffr | 2008-08-07 16:18:17 +1000 (Thu, 07 Aug 2008) | 2 lines
2012-11-15 13:40:52 +11:00
Ferdi Franceschini
3398c75eaf beamstopaction.[ch]
NEW: Implements an action command to drive the quokka beamstops up and down.

r2671 | ffr | 2008-08-07 13:19:12 +1000 (Thu, 07 Aug 2008) | 3 lines
2012-11-15 13:40:48 +11:00
Ferdi Franceschini
d7cea6914c oscillate.c SICS-232
You can now run the oscillating collimator for a specified number of cycles.
A MOTEND event is now sent when the oscillator stops.
Also temporarily set status to eEager to allow changing the motor accesscode parameter while something else is running, (eg a counter)

motor.c
finishDriving is no longer static so we can call it from the oscilator and generate a MOTEND event.

west4100.c
Return 'success' from wrapper on "controlsensor" and "sensorlist" queries so we can test and capture their values in scripts.

Makefile
Compile the quokka beamstopaction object

site_ansto.c
Add the MakeActionObject command.  Currently only makes the hardcoded beamstopaction object

obpar.c
Report object name and parameter on an illegal attempt to set a parameter

hmm_configuration_common_1.tcl
Add oscillating collimator control flag for Wombat.  If true we use hmm to start the histogram server instead of hmc.  TODO remove hmc and always use hmm.

hipd/config/motors/motor_configuration.tcl
Don't load anticollider config twice.  Fix oct limits

wombat_configuration.tcl
Environment configuration must be loaded before running server_init.

hrpd/config/hmm/hmm_configuration.tcl
Fix default time-bin to match 10Hz frame frequency

hrpd/config/motors/motor_configuration.tcl
Added dummy motor for testing.

reflectometer/config/hmm/detector.tcl
Fill in dhv1 configuration parameters.

sans/config/hmm/detector.tcl
Enable detector voltage control

sans/config/hmm/hmm_configuration.tcl
SICS-227 set default resolution to 192x192

sans/config/motors/motor_configuration.tcl
Added dummy motor for testing

quokka parameters.tcl
Fix L2mm calculation, Fix SICS-228 users cannot set rotapdeg

beamstopaction.[ch]
NEW: Implements an action command to drive the quokka beamstops up and down.

r2670 | ffr | 2008-08-07 13:17:29 +1000 (Thu, 07 Aug 2008) | 53 lines
2012-11-15 13:40:44 +11:00
Ferdi Franceschini
dd984f6327 Prevent x/y translation of detector when voltage >= 800V
r2667 | ffr | 2008-08-06 12:47:47 +1000 (Wed, 06 Aug 2008) | 2 lines
2012-11-15 13:40:40 +11:00
Ferdi Franceschini
e31aa973a6 Merged release 2.1
r2664 | ffr | 2008-07-18 14:33:39 +1000 (Fri, 18 Jul 2008) | 2 lines
2012-11-15 13:40:36 +11:00
Ferdi Franceschini
8fb864ee37 Incorporate changes from deployed motor configurations.
r2663 | ffr | 2008-07-18 12:39:35 +1000 (Fri, 18 Jul 2008) | 2 lines
2012-11-15 13:40:32 +11:00
Ferdi Franceschini
dd927d18af hmm_configuration_common_1.tcl
Set histmem view mag to auto
Workaround for SICS-204 hmc sets bm preset to 0

hrpd/config/count/counter.tcl
reflectometer/config/count/counter.tcl
echidna only has two beam monitors enabled
SICS should not start or stop the third beam monitor on platypus

config/scan/scan_common_1.tcl
Show counts from available beam monitors during scans

r2649 | ffr | 2008-07-14 15:15:58 +1000 (Mon, 14 Jul 2008) | 12 lines
2012-11-15 13:40:27 +11:00
Ferdi Franceschini
7431af42d9 Remove obsolete code
r2648 | ffr | 2008-07-11 14:46:01 +1000 (Fri, 11 Jul 2008) | 2 lines
2012-11-15 13:40:23 +11:00