af32e4ad332c2a01496946b779396a41.ppt
- Количество слайдов: 17
“Recent” developments in EPICS -based beamline software 7/24/02 Tim Mooney Beamline Controls & Data Acquisition Group Advanced Photon Source Argonne National Laboratory
Autosave/restore (www. aps. anl. gov/xfd/Soft. Dist/sw. BCDA/auto. Save. Restore_3. 13. 5. tar. gz) • • • PPC compatible • Almost backward compatible Include files • Request-file excerpt: # comment Macro substitution xxx: m 1. DESC # comment Specify restore files file myfile. req P=xxx: , M=m 2. . . Select directories for save files, request files • Include-file excerpt: $(P)$(M). VAL • Dated boot backup $(P)$(M). EGU • Reload request files file nested. req P=$(P), Q=abc • Manual save/restore works …
save. Data v 1. 13 • PPC compatible (EPICS >3. 13. 5) • Misc. bug fixes (stack size, trigger-PV field name, save-every-point fixed, string term. ) • PC/Mac friendly file names, e. g. xxx_scan 2_nnnn. mda
transform. Record v 5. 5 • Test for old value failed (calc would never run) if value was Na. N. • New field IVLA: can disable calc & output while record is in alarm • Backward compatible with everything in syn. Apps • Scheduled for syn. Apps 4. 5
scaler. Record v 3. 12 • Hold time before autocount overwrites scaler values is adjustable in st. cmd and in vx. Works console (default is 10 sec. ) scaler_wait_time=10 • Guaranteed to post VAL after count has finished and all scaler counts have been posted. (So clients know when they’ve received all the monitors they’re going to get. )
String calculations see www. aps. anl. gov/xfd/bcda/medm_help/yys. Calcout. Record. adl. html • Substring: • • • Replace: Build: Parse: Select field: Concatenate: ‘abcdef’[1, 3] => ‘bcd’ ‘abcdef’[‘a’, ’f’] => ‘bcde’ ‘abcdef’{‘ab’, ’XY’} => ‘XYcdef’ printf(‘abc%. 2 f’, 1. 2) => ‘abc 1. 20’ dbl(‘abc 1. 20’) => 1. 2 @@(0) => 0 th string arg (AA) ‘abc’+’def’ => ‘abcdef’
Serial O/I Block • Combination of string calc to construct output message, serial record to send and/or receive, and string calc to parse reply • Write serial-device support at run time • Similar GPIB support
Optical table • Newport (diffractometer base) geometry • PNC geometry
Monochromators • Dispersive double crystal (nested, in-line) • Spherical grating
Miscellaneous • • Sample Wheel (scannable, sample averaging) 4 -step measurement (scannable, for dichroism) Run-time table interpolation (``, feedback ctrl) XIA filter/shutter
Scans • 4 positioners, 4 detector triggers, 70 signals • save. Data client writes data to NFS-mounted disk • Can acquire 1 D arrays (e. g. , save MCA spectra) • Start/end, table, on-the-fly • Dedicated scan and parameter sets for 1 -D automated alignment
Clients, data analysis • • scan. See (realtime display for 1 D, 2 D, 3 D scans) scan. Browser (offline display of MDA files) NX Scan Browser (offline display of Ne. Xus files) IDL classes, routines for image data (plot, fit, ROI, overlay, etc. ) www. aps. anl. gov/~cha/Doc. html • PVMail (send email when PV violates limits) • Channel Archiver
Python • plot. py - 1 D real-time scan-plot demonstration • read. MDA. py - read MDA files into a structure from read. MDA import * scan = read. MDA(“xxx_scan 2_0001”) • det. View. py - display images from MDA file from det. View import * det. View(scan[2]. d[1: 7])
Linux • Working…
Hardware Paddle board for use with BC-005 OMS VME 58 to Step. Pak transition board Mycom microswitch interface (DIN-rail) Optical isolation board for use with BC-005 Optical limit switch display/inverter Step-Dir / Step-Step converter Acromag 9440 interface NEAT stage interface TTL to RS 232 converter Xycom 240 -> QI 2000 adapter Turbo gate valve controller PSS remote shutter interface Servo amplifier for use with BC-005 Nitrogen-distribution controller Picomotor connections Multi purpose IP to Lemo interface (DINrail) IP 330 ADC interface (DIN-rail) IP-Unidig interface for BC-020 IP-Systran DAC interface for BC-020 B. O. N. E. box, for electronics prototyping IP 330 ADC interface for BC-020 IP-Lemo system Xycom 240 - Mad City Labs Nano-Drive Soon: Relay Module Board VME 58 front header adapter for BC-005 VME Digital Waveform Generator VME 26 -bit histogrammer
af32e4ad332c2a01496946b779396a41.ppt