-
Notifications
You must be signed in to change notification settings - Fork 0
User's Guide
Make sure all devices are visible within the COM heading in the Windows Device Manager, and are working properly.
Do
python ScannerServer.pyWait a few seconds for the stepper motors to be initialized.
The GUI has several tabs. Start by entering the IP and port of the computer with the running server, and press connect. If everything goes smoothly, the GUI should show that it is connected and polling the server (left side bar).
Before a scan can be preformed, the stepper motors and voltage regulator must be calibrated. Switch to the calibration tab and select a stepper motor using the radio buttons. Measure the distances from the center of the beamline to the limit switch positions and enter those values in the calibration boxes. Then press the calibrate button and wait for the stepper motor to move across its full range. The position of the stepper motors is determined by linearly interpolating between the (step, position) points at each endpoint. Repeat for the other stepper motor.
For the voltage regulator, use the text box to enter a SET voltage in the range [-10, 10]. Measure the output of the HV power supply and enter the measured number in the lower textbox. Then press 'Add point'. This adds a (x,y,z) point containing (value read from the server, measured value, set value). Multiple points can be set for the voltage regulator.
Once the devices are calibrated, the scan tab becomes active. To start a scan, an output file must be selected. Additional options determine if an image of the scan is also saved, and user-defined metadata fields can be added. Selecting the "Mandatory" for a metadata field makes it required to be filled in before the scan starts, and make it uneditable from the GUI.
Fill in the textboxes for the start/stop/step settings for each stepper motor, and the corresponding voltage regulator positions. If all the values are within the allowed device range, and the output file is selected, you may start the scan.
The 'Time remaining' field shows the time remaining for the current scan only, i.e. not the time remaining for a combined vertical & horizontal scan.
Click on the scan image to display the (position, voltage, current) point associated with each cell.
On the review tab, previous scans may be reviewed and their metadata may be edited. Each scan dialog also provides the user with the option of re-using the settings from that scan.
On this tab, there are live-updating plots for all the device values. This will slow down the GUI a bit, so it is recommended to keep the 'Live update' checkbox un-checked most of the time.