src.slit package
Submodules
src.slit.slit_cmd module
- class src.slit.slit_cmd.slit_ximc_control
Bases:
object
Class to control the Xilinc slit.
- __init__()
Initialize and connect to xilinc slit, and print out some parameters for debugging
- home_stage()
Move to home and calibrate zero position.
- slit_closing()
Close the slit.
- slit_get_position()
Get the position of the slit.
- Returns:
Steps (self.x_pos.Position) and microsteps (self.x_pos.uPosition).
- slit_get_speed()
Get, print and return slit movement speed.
- Returns:
Slit movement speed
- slit_info()
Obtain information about the Xilinc slit. Print out information such as device info, manufacturer, manufacturerID, ProductDescription.
- slit_move(distance, udistance)
Move the slit by a defined number of steps and microsteps.
- Parameters:
distance – Steps to move
udistance – Microsteps to move.
- slit_serial()
Get and print serial number of slit.
- slit_set_microstep_mode_256()
Set the slit into 1/256-step mode (most precise mode). Check: https://libximc.xisupport.com/doc-en/ximc_8h.html#flagset_microstepmode
- slit_set_speed(speed)
Set slit movement speed.
- Parameters:
speed – Set movement speed. Target speed (for stepper motor: steps/s). Range: 0..100000.
- slit_status()
Obtain and print status information of the Xilinc slit device.
- slit_wait_for_stop(interval)
Check whether the slit has stopped moving.
- Parameters:
interval – Status refresh interval. The function waits this number of milliseconds between requests to the controller.