15
South East South East Regional Regional Collaborative Access Collaborative Access Team Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Embed Size (px)

Citation preview

Page 1: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

South East South East RegionalRegional

Collaborative Access Collaborative Access TeamTeam

Controls and Programs:Using Python With MX

James F. FaitBill Lavender

Page 2: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

MX Client/Server

• MxServer -- Linux or Windows– Interface to Hardware– Multiple Servers on Beamline

• MX Client Programs– Motor– MXGUI– ImcaGUI– Optimize– Python MX GUI

Page 3: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Tcl/Tk User Interface

• Existing GUIs Used at IMCA, others

• MXGUI -- Staff Level UI

• IMCAGUI -- Crystallographic Setup– MAD Fluorescence scans and Analysis– Periodic Table for Edge Setup

• Optimize -- Intensity Optimization

• Auto-Optimize -- “One Button” Setup

Page 4: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Imcagui User Interface

Page 5: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Selecting an Absorption Edge

Page 6: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Python User Interface

• Similar look and feel to Tcl/Tk user GUI

• Implemented with Tkinter and PMW

• Uses native mp binding for Mx

• Better performance than Tcl/Tk

Page 7: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Attenuation Widget

Page 8: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Thermocouple Logger

Page 9: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Mono RTD Logger

Page 10: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Beam Position Monitor

• 4 PIN Diodes • 0.5 μm Chromium Foil• Back Fluorescence• Less than 1μrad tune

sensitivity, 5 μm displacement.

• Automatic tune adjustment software, for slow changes in tune.

Page 11: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

BPM Tune Response

Page 12: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

2nd Crystal Tune Feedback

Page 13: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Main User GUI

Page 14: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Periodic Table for MAD Setup

Page 15: South East Regional Collaborative Access Team Controls and Programs: Using Python With MX James F. Fait Bill Lavender

Crystal Alignment