Dod
dod
Classes
DoD
DoD(modules='None', ip='172.21.72.187', port=9999, supported_json='/cds/group/pcds/pyps/apps/hutch-python/mfx/dod/supported.json')
Class definition of the DoD robot
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
modules
|
string
|
Defines the optional modules of the robot. Options: 'None', 'codi', , |
'None'
|
ip
|
|
'172.21.72.187'
|
Source code in dod/dod.py
Attributes
client
instance-attribute
timing_delay_nozzle_1
instance-attribute
timing_delay_nozzle_1 = timing_Xray - timing_nozzle_1 - timing_delay_sciPulse - timing_delay_reaction
timing_delay_nozzle_2
instance-attribute
timing_delay_nozzle_2 = timing_Xray - timing_nozzle_2 - timing_delay_sciPulse - timing_delay_reaction
trigger_LED
instance-attribute
trigger_Xray
instance-attribute
trigger_nozzle_1
instance-attribute
trigger_nozzle_2
instance-attribute
Functions
busy_wait
Busy wait untill timeout value is reached, timeout : sec returns true if timeout occured
Source code in dod/dod.py
clear_abort
clear abort flag Parameters verbose : boolean
Defines whether the function returns the full output, or only the results
Returns: r : status readback after error cleared '''
Source code in dod/dod.py
do_move
Moves robot to new position
Parameters position : string Position name to which the robot is supposed to move safety_test : Boolean question whether a safety test is to be performed or not True: Test will be performed False: Not performed verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r : current position
Source code in dod/dod.py
do_task
Executes a task of the robot
Parameters task_name : string task name which robot is supposed to perform safety_test : Boolean question whether a safety test is to be performed or not True: Test will be performed False: Not performed verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r :
Source code in dod/dod.py
get_current_position
Returns current robot position name and properties of the last selected position, together with the real current position coordinates Parameters
verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r : returns the current position.
expected_keys = [
'CurrentPosition',
'Position',
'PositionReal',
]
Source code in dod/dod.py
get_forbidden_region
returns forbidden regions in the robot coordinate x y plane for end-point testing defined via a rectangle in the x-y-plane. x_start<x_stop, y_start<y_stop returns the region depending on the rotation state, as some regions are forbidden only in one configuration
Parameters rotation_state: string
Source code in dod/dod.py
get_nozzle_status
Returns current nozzle parameters position Parameters
verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r : returns the current nozzle parameters.
expected_keys = [
"Activated Nozzles",
"Selected Nozzles",
"ID,Volt,Pulse,Freq,Volume", # Intreseting? all one key
"Dispensing",
]
Source code in dod/dod.py
get_status
returns the robot state
Parameters verbose : boolean
Defines whether the function returns the full output, or only the results
Returns: r : dict different states of the robot
Source code in dod/dod.py
get_task_details
This gets the details of a task from the robot to see the scripted routines Parameters task_name : string Name of the task that we want to get verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r : returns the robot tasks
Source code in dod/dod.py
get_task_names
This gets the names of available tasks from the robot Parameters task_name : string Name of the task that we want to get verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r : dict returns the robot tasks
Source code in dod/dod.py
logging_string
Creating the string to post to the e-log.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Returns
|
|
required | |
post
|
string
|
String with useful logging information for posting into the e-log |
required |
Source code in dod/dod.py
move_x_abs
Robot coordinate system!!!:
Moves robot to new absolute x position.
No safety test.
Parameters position : int Absolute position in um(?) to which the robot is supposed to move safety_test : Boolean question whether a safety test is to be performed or not True: Test will be performed False: Not performed verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r : current position
Source code in dod/dod.py
move_y_abs
Robot coordinate system!!!:
Moves robot to new absolute x position.
No safety test.
Parameters position : int Absolute position in um(?) to which the robot is supposed to move safety_test : Boolean question whether a safety test is to be performed or not True: Test will be performed False: Not performed verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r : current position
Source code in dod/dod.py
move_z_abs
Robot coordinate system!!!:
Moves robot to new absolute Z position.
No safety test.
Parameters position : int Absolute position in um(?) to which the robot is supposed to move safety_test : Boolean question whether a safety test is to be performed or not True: Test will be performed False: Not performed verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r : current position
Source code in dod/dod.py
set_forbidden_region
set a forbidden region in the robot coordinate x y plane for end-point testing defined via a rectangle in the x-y-plane. x_start<x_stop, y_start<y_stop set the region depending on the rotation state, as some regions are forbidden only in one configuration
Parameters x_start : float x-position start x_stop : float x-position stop y_start : float y-position start y_stop : float y-position stop rotation_state: string
Source code in dod/dod.py
set_nozzle_dispensing
Sets the dispensing, either "Free", "Triggered", or "Off" Parameters mode : string either "free", "triggered", or "off" verbose : boolean
Defines whether the function returns the full output, or only the results
Defines whether the function returns the full output, or only the results
Returns: r :
Source code in dod/dod.py
set_timing_abs_Xray
Setting the absolute timing of the X-rays for claculation purposes
Parameters timing_abs : float
abs timing in ns from robot alignment
abs timing in ns from robot alignment
Returns:
Source code in dod/dod.py
set_timing_rel_LED
Setting the relative timing of the LED relative to the X-rays
Parameters timing_rel : float
relative delay in ns from robot alignment
relative delay in ns from robot alignment
Returns:
Source code in dod/dod.py
set_timing_rel_reaction
Setting the relative timing of the reaction relative to the X-rays
Parameters timing_rel : float
relative delay in ns from robot alignment
relative delay in ns from robot alignment
Returns:
Source code in dod/dod.py
set_timing_relative_nozzle
Changing the timing of the selected nozzle by a relative amount
Parameters nozle : int nozzle number timing_rel : float
relative change in ns from robot alignment
relative change in ns from robot alignment
Returns:
Source code in dod/dod.py
set_timing_update
updating the timing triggers according to the set relative and absolute timing values
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Returns
|
|
required |
Source code in dod/dod.py
set_timing_zero_nozzle
Setting the time zero for the nozzles from the LED alignment in robot
Parameters nozle : int nozzle number timing_rel : float
relative delay in ns from robot alignment
relative delay in ns from robot alignment
Returns:
Source code in dod/dod.py
stop_task
Stop task while running ** ISSUES ** - When stop task is called, the Robot stays in "BUSY" Status.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
verbose
|
boolean
|
Defines whether the function returns the full output, or only the results |
True
|
Returns
|
|
required | |
r
|
status readback when aborted |
required |
Source code in dod/dod.py
test_forbidden_region
tests if the end point of a motion is inside a forbidden region No testing of the path of a motion included!
Parameters x_test : float x-position to test y_test : float y-position to test
Returns: safe_motion : bool boolean flag if endpoint of motion is safe or not