two-motor scan. a2scan scans two motors, as specified by motor1 and motor2. Each motor moves the same number of intervals with starting and ending positions given by start_pos1 and final_pos1, start_pos2 and final_pos2, respectively. The step size for each motor is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
two-motor continuous scan
three-motor scan . a3scan scans three motors, as specified by motor1, motor2 and motor3. Each motor moves the same number of intervals with starting and ending positions given by start_pos1 and final_pos1, start_pos2 and final_pos2, start_pos3 and final_pos3, respectively. The step size for each motor is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
three-motor continuous scan
four-motor scan . a4scan scans four motors, as specified by motor1, motor2, motor3 and motor4. Each motor moves the same number of intervals with starting and ending positions given by start_posN and final_posN (for N=1,2,3,4). The step size for each motor is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
four-motor continuous scan
Multiple motor scan. amultiscan scans N motors, as specified by motor1, motor2,...,motorN. Each motor moves the same number of intervals with starting and ending positions given by start_posN and final_posN (for N=1,2,...). The step size for each motor is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
Do an absolute scan of the specified motor. ascan scans one motor, as specified by motor. The motor starts at the position given by start_pos and ends at the position given by final_pos. The step size is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
Do an absolute continuous scan of the specified motor. ascanc scans one motor, as specified by motor.
Do an absolute scan of the specified motor. ascan scans one motor, as specified by motor. The motor starts at the position given by start_pos and ends at the position given by final_pos. The step size is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
Undoes changes done with sar_demo
Puts the contents of the given data in a file inside the pool
Count for the specified time on the active measurement group
two-motor scan relative to the starting position. d2scan scans two motors, as specified by motor1 and motor2. Each motor moves the same number of intervals. If each motor is at a position X before the scan begins, it will be scanned from X+start_posN to X+final_posN (where N is one of 1,2). The step size for each motor is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
continuous two-motor scan relative to the starting positions
three-motor scan . d3scan scans three motors, as specified by motor1, motor2 and motor3. Each motor moves the same number of intervals. If each motor is at a position X before the scan begins, it will be scanned from X+start_posN to X+final_posN (where N is one of 1,2,3) The step size for each motor is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
continuous three-motor scan
four-motor scan relative to the starting positions a4scan scans four motors, as specified by motor1, motor2, motor3 and motor4. Each motor moves the same number of intervals. If each motor is at a position X before the scan begins, it will be scanned from X+start_posN to X+final_posN (where N is one of 1,2,3,4). The step size for each motor is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts. Upon termination, the motors are returned to their starting positions.
continuous four-motor scan relative to the starting positions
Creates a new controller ‘role_prop’ is a sequence of roles and/or properties. - A role is defined as <role name>=<role value> (only applicable to pseudo controllers) - A property is defined as <property name> <property value>
If both roles and properties are supplied, all roles must come before properties. All controller properties that don’t have default values must be given.
Example of creating a motor controller (with a host and port properties):
[1]: defctrl SuperMotorController myctrl host homer.springfield.com port 5000
Example of creating a Slit pseudo motor (sl2t and sl2b motor roles, Gap and Offset pseudo motor roles):
[1]: defctrl Slit myslit sl2t=mot01 sl2b=mot02 Gap=gap01 Offset=offset01
Creates an element on a controller with an axis
Creates a new motor in the active pool
Create a new measurement group. First channel in channel_list MUST be an internal sardana channel. At least one channel MUST be a Counter/Timer (by default, the first Counter/Timer in the list will become the master).
Multiple motor scan relative to the starting positions. dmultiscan scans N motors, as specified by motor1, motor2,...,motorN. Each motor moves the same number of intervals If each motor is at a position X before the scan begins, it will be scanned from X+start_posN to X+final_posN (where N is one of 1,2,...) The step size for each motor is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
motor scan relative to the starting position. dscan scans one motor, as specified by motor. If motor motor is at a position X before the scan begins, it will be scanned from X+start_pos to X+final_pos. The step size is (start_pos-final_pos)/nr_interv. The number of data points collected will be nr_interv+1. Count time is given by time which if positive, specifies seconds and if negative, specifies monitor counts.
continuous motor scan relative to the starting position.
Dumps the complete environment
Returns the contents of the library file which contains the given controller code.
Returns the contents of the given library file
N-dimensional scan along user defined paths. The motion path for each motor is defined through the evaluation of a user-supplied function that is evaluated as a function of the independent variables. -independent variables are supplied through the indepvar string. The syntax for indepvar is “x=expresion1,y=expresion2,...” -If no indep vars need to be defined, write ”!” or “*” or “None” -motion path for motor is generated by evaluating the corresponding function ‘func’ -Count time is given by integ_time. If integ_time is a scalar, then the same integ_time is used for all points. If it evaluates as an array (with same length as the paths), fscan will assign a different integration time to each acquisition point. -If integ_time is positive, it specifies seconds and if negative, specifies monitor counts.
IMPORTANT Notes: -no spaces are allowed in the indepvar string. -all funcs must evaluate to the same number of points
EXAMPLE: fscan x=[1,3,5,7,9],y=arange(5) motor1 x**2 motor2 sqrt(y*x-3) 0.1
Reads and outputs the data from the communication channel
Read environment variables from config_env.xml file
Lists all 0D experiment channels
Lists all 1D experiment channels
Lists all 2D experiment channels
Lists all existing objects
Lists all communication channels
Lists all Counter/Timers
Lists all existing controllers
Lists all existing controller classes
List all macro definitions
Lists the environment
Lists all experiment channels
Lists all existing instruments
Lists all IORegisters
Lists all motors
Lists existing macros
Lists existing macro libraries.
List existing measurement groups
Lists all pseudo counters
Lists all existing motors
Lists the view options
Starts an mca
Stops an mca
2d grid scan . The mesh scan traces out a grid using motor1 and motor2. The first motor scans from m1_start_pos to m1_final_pos using the specified number of intervals. The second motor similarly scans from m2_start_pos to m2_final_pos. Each point is counted for for integ_time seconds (or monitor counts, if integ_time is negative). The scan of motor1 is done at each point scanned by motor2. That is, the first motor scan is nested within the second motor scan.
2d grid scan. scans continuous
Prints the state of a motor
Move motor(s) to the specified position(s)
Move motor(s) relative to the current position(s)
Returns the the macro code for the given macro name.
Sends a string to the communication channel
Show all motor positions in a pretty table
Show the position of the specified motors in a pretty table
Reads an output register
Reloads the given python library code from the macro server filesystem.
Warning
use with extreme care! Accidentally reloading a system module or an installed python module may lead to unpredictable behavior
Note
if python module is used by any macro, don’t forget to reload the corresponding macros afterward so the changes take effect.
Reloads the given macro code from the macro server filesystem. Attention: All macros inside the same file will also be reloaded.
Reloads the given macro library code from the macro server filesystem.
Logs a new record into the message report system (if active)
Sets up a demo environment. It creates many elements for testing
Prints details about the given sardana object
Shows scan history information. Give optional parameter scan number to display details about a specific scan
Sends the given data directly to the controller
Sets the given environment variable to the given value
This macro executes a sequence of macros. As a parameter it receives a string which is a xml structure. These macros which allow hooks can nest another sequence (xml structure). In such a case, this macro is executed recursively.
Sets the software limits on the specified motor hello
Sets the dial limits on the specified motor
Sets the position of the motor to the specified value
Sets the USER position of the motor to the specified value (by changing OFFSET and keeping DIAL)
Defines the timer channel for the active measurement group
Sets the given view option to the given value
Count on the active measurement group and update
Deletes an existing controller
Deletes an existing element
Deletes an existing measurement group
Move motor(s) to the specified position(s) and update
Move motor(s) relative to the current position(s) and update
Unsets the given environment variable
Resets the value of the given view option
Show all motor positions
Show the position of the specified motors.
Writes a value to an input register
Show all user motor positions
Show the user position of the specified motors.