Autorun
autorun(sample='?', tag=None, run_length=300, record=True, runs=5, inspire=False, daq_delay=5, picker=None, cam=None)
Automate runs.... With optional quotes
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sample
|
Sample Name |
'?'
|
|
tag
|
Run group tag |
None
|
|
run_length
|
number of seconds for run 300 is default |
300
|
|
record
|
set True to record |
True
|
|
runs
|
number of runs 5 is default |
5
|
|
inspire
|
Set false by default because it makes Sandra sad. Set True to inspire |
False
|
|
daq_delay
|
delay time between runs. Default is 5 second but increase is the DAQ is being slow. |
5
|
|
picker
|
If 'open' it opens pp before run starts. If 'flip' it flipflops before run starts |
None
|
Operations
Source code in mfx/autorun.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
|
begin(events=None, duration=300, record=False, use_l3t=None, controls=None, wait=False, end_run=False)
Start the daq and block until the daq has begun acquiring data.
Optionally block with wait=True
until the daq has finished aquiring
data. If blocking, a ctrl+c
will end the run and clean up.
If omitted, any argument that is shared with configure
will fall back to the configured value.
Internally, this calls kickoff
and manages its Status
object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
events
|
Number events to take in the daq. |
None
|
|
duration
|
Time to run the daq in seconds, if |
300
|
|
record
|
If |
False
|
|
use_l3t
|
If |
None
|
|
controls
|
If provided, values from these will make it into the DAQ data
stream as variables. We will check |
None
|
|
wait
|
If |
False
|
|
end_run
|
If |
False
|
Source code in mfx/autorun.py
ioc_cam_recorder(cam='camera name', run_length=10, tag='?')
Record IOC Cameras
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cam
|
Select camera PV you'd like to record |
'camera name'
|
|
run_length
|
number of seconds for recording. 10 is default |
10
|
|
tag
|
Run group tag |
'?'
|
Operations
Source code in mfx/autorun.py
post(sample='?', tag=None, run_number=None, post=False, inspire=False, add_note='')
Posts a message to the elog
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sample
|
Sample Name |
'?'
|
|
run_number
|
Run Number. By default this is read off of the DAQ |
None
|
|
post
|
set True to record/post message to elog |
False
|
|
inspire
|
Set false by default because it makes Sandra sad. Set True to inspire |
False
|
|
add_note
|
adds additional note to elog message |
''
|