udas_detect_ro <camera>where camera is the formal name of the camera, e.g. WFC.
gocat 5C12.144 run WFC 500 "5C12.144" & udas_detect_ro WFC ; gocat 5C12.145 wait run WFC 500 "5C12.145" & udas_detect_ro WFC ; gocat 5C12.148 wait run WFC 500 "5C12.148"This observes three objects from a target list in sequence, slewing to the next target as soon as each observation starts to read out; the slew time is hidden inside the readout time.
The run commands are done in the background of the shell - hence the ampersand - and the slews in the foreground. After each slew, the script waits - using the shell's built-in wait command - for the previous run to read out and save itself.
This example works with the shells csh
run WFC 500 & udas_detect_ro WFC ; filter R ; run WFC 600because the second run will collide with the end of the first. Use wait (or the equivalent in your scripting language) to avoid this.