Phase Micro Stepper Device
This module implements the SATPhaseMicroStepper device.
- class SatPhaseMicroStepper(*args, **kwargs)
An implementation of a PhaseMicroStepper Tango device for SatLmc.
- Advance10M(argin)
Advance the output phase of 10MHz OUT signals, in units of 10ns.
Acceptable range is from 0 to +9.
- class Advance10MCommand(component_manager, logger=None)
Class for handling the Advance10M command.
- __init__(component_manager, logger=None)
Initialise a new Command instance.
- Parameters:
component_manager (
PhaseMicroStepperDriver
) – a component manager instancelogger (
Optional
[Logger
]) – a logger for this command to use.
- do(*args, **kwargs)
Implement Advance10M command functionality.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- AdvanceAllPhase(argin)
Advance the output phase of all OUT signals, in units of 1e-15s.
The resolution is about 1e-13. Acceptable range is from -5000000 to +5000000.
- class AdvanceAllPhaseCommand(component_manager, logger=None)
Class for handling the AdvanceAllPhase command.
- __init__(component_manager, logger=None)
Initialise a new Command instance.
- Parameters:
component_manager (
PhaseMicroStepperDriver
) – a component manager instancelogger (
Optional
[Logger
]) – a logger for this command to use.
- do(*args, **kwargs)
Implement AdvanceAllPhase command functionality.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- AdvancePPS(argin)
Advance the phase of PPS OUT signals in units of 10ns.
The acceptable range is limited from -99000000 to 30000000.AdvancePPS.
- class AdvancePPSCommand(component_manager, logger=None)
Class for handling the AdvancePPS command.
- __init__(component_manager, logger=None)
Initialise a new Command instance.
- Parameters:
component_manager (
PhaseMicroStepperDriver
) – a component manager instancelogger (
Optional
[Logger
]) – a logger for this command to use.
- do(*args, **kwargs)
Implement AdvancePPS command functionality.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- GetOffsetFrequency()
Get the offset frequency, in units of 1e-20.
- Return type:
- Returns:
the offset frequency send in the last setOffsetFrequencu command.
- class GetOffsetFrequencyCommand(component_manager, logger=None)
Class for handling the GetOffsetFrequency() command.
- __init__(component_manager, logger=None)
Initialise a new Command instance.
- Parameters:
component_manager (
PhaseMicroStepperDriver
) – a component manager instancelogger (
Optional
[Logger
]) – a logger for this command to use.
- do(*args, **kwargs)
Implement GetOffsetFrequency() command functionality.
- class InitCommand(*args, **kwargs)
Implement the device initialisation for the PhaseMicroStepper device.
- class SetIPAddressCommand(component_manager, logger=None)
Class for handling the SetIPAddress command.
- __init__(component_manager, logger=None)
Initialise a new Command instance.
- Parameters:
component_manager (
PhaseMicroStepperDriver
) – a component manager instancelogger (
Optional
[Logger
]) – a logger for this command to use.
- do(*args, **kwargs)
Implement SetIPAddress command functionality.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- SetIPaddress(argin)
Set the IP address of the EOG and closes the TCP connection.
- SetOffsetFrequency(offset)
Set the offset frequency.
Set the offset frequency of OUT signals respect to the frequency of 100MHz IN signal, in units of 1e-20. 7 Resolution is better than 3e-20. The acceptable range is from -1000000000000 to 1000000000000
- class SetOffsetFrequencyCommand(component_manager, logger=None)
Class for handling the SetOffsetFrequency(argin) command.
- __init__(component_manager, logger=None)
Initialise a new Command instance.
- Parameters:
component_manager (
PhaseMicroStepperDriver
) – a component manager instancelogger (
Optional
[Logger
]) – a logger for this command to use.
- do(*args, **kwargs)
Implement SetOffsetFrequency command functionality.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- class SetUDPAddressCommand(component_manager, logger=None)
Class for handling the SetUDPAddress command.
- __init__(component_manager, logger=None)
Initialise a new Command instance.
- Parameters:
component_manager (
PhaseMicroStepperDriver
) – a component manager instancelogger (
Optional
[Logger
]) – a logger for this command to use.
- do(*args, **kwargs)
Implement SetUDPAddress command functionality.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- SetUDPaddress(argin)
Set the UDP address destination.
- SyncPPS()
External sync of the 1PPS outputs.
- class SyncPPSCommand(component_manager, logger=None)
Class for handling the SyncPPS(argin) command.
- __init__(component_manager, logger=None)
Initialise a new Command instance.
- Parameters:
component_manager (
PhaseMicroStepperDriver
) – a component manager instancelogger (
Optional
[Logger
]) – a logger for this command to use.
- do(*args, **kwargs)
Implement SyncPPS command functionality.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- __init__(*args, **kwargs)
Initialise a new instance.
- create_component_manager()
Create and return a component manager for this device.
- Return type:
- Returns:
a component manager for this device.
- first_internal_oscillator()
Report the status of the first internal oscillator.
- Return type:
- Returns:
oscillator 1 value (fixed point 6 decimal digits)
- init_command_objects()
Initialise the command handlers for commands supported by this device.
- Return type:
- internal_temperature()
Report the internal temperature of the device.
- Return type:
- Returns:
temperature in celcius (fixed point 2 decimal digits)
- is_Advance10M_allowed()
Check if command Advance10M is allowed in the current device state.
- Return type:
- Returns:
True
if the command is allowed
- is_AdvanceAllPhase_allowed()
Check if command AdvanceAllPhase is allowed in the current device state.
- Return type:
- Returns:
True
if the command is allowed
- is_AdvancePPS_allowed()
Check if command AdvancePPS is allowed in the current device state.
- Return type:
- Returns:
True
if the command is allowed
- is_SetIPaddress_allowed()
Check if command SetIPaddress is allowed in the current device state.
- Return type:
- Returns:
True
if the command is allowed
- is_SetUDPaddress_allowed()
Check if command SetUDPaddress is allowed in the current device state.
- Return type:
- Returns:
True
if the command is allowed
- is_SyncPPS_allowed()
Check if command SyncPPS is allowed in the current device state.
- Return type:
- Returns:
True
if the command is allowed
- is_attribute_allowed(attr_req_type)
Protect attribute access before being updated otherwise it reports alarm.
- Parameters:
attr_req_type (
AttReqType
) – tango attribute type READ/WRITE- Return type:
- Returns:
True if the attribute can be read else False
- second_internal_oscillator()
Report the status of the second internal oscillator.
- Return type:
- Returns:
oscillator 2 value (fixed point 6 decimal digits)