<s> import socket <EOL> class XPSException ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , msg , * args ) : <EOL> self . msg = msg <EOL> def __str__ ( self ) : <EOL> return str ( self . msg ) <EOL> class XPS : <EOL> MAX_NB_SOCKETS = <NUM_LIT:100> <EOL> __sockets = { } <EOL> __usedSockets = { } <EOL> __nbSockets = <NUM_LIT:0> <EOL> def __init__ ( self ) : <EOL> XPS . __nbSockets = <NUM_LIT:0> <EOL> for socketId in range ( self . MAX_NB_SOCKETS ) : <EOL> XPS . __usedSockets [ socketId ] = <NUM_LIT:0> <EOL> def withValidSocket ( fcn ) : <EOL> """<STR_LIT>""" <EOL> def wrapper ( * args , ** kw ) : <EOL> try : <EOL> sid = args [ <NUM_LIT:1> ] <EOL> if XPS . __usedSockets [ sid ] == <NUM_LIT:0> : <EOL> raise XPSException ( '<STR_LIT>' % fcn . __name__ ) <EOL> except IndexError : <EOL> raise XPSException ( '<STR_LIT>' % fcn . __name__ ) <EOL> return fcn ( * args , ** kw ) <EOL> wrapper . __doc__ = fcn . __doc__ <EOL> wrapper . __name__ = fcn . __name__ <EOL> wrapper . __dict__ . update ( fcn . __dict__ ) <EOL> return wrapper <EOL> @ withValidSocket <EOL> def __sendAndReceive ( self , socketId , command ) : <EOL> try : <EOL> XPS . __sockets [ socketId ] . send ( command ) <EOL> ret = XPS . __sockets [ socketId ] . recv ( <NUM_LIT> ) <EOL> while ( ret . find ( '<STR_LIT>' ) == - <NUM_LIT:1> ) : <EOL> ret += XPS . __sockets [ socketId ] . recv ( <NUM_LIT> ) <EOL> except socket . timeout : <EOL> return [ - <NUM_LIT:2> , '<STR_LIT>' ] <EOL> except socket . error ( errNb , errString ) : <EOL> print ( '<STR_LIT>' + errString ) <EOL> return [ - <NUM_LIT:2> , '<STR_LIT>' ] <EOL> for i in range ( len ( ret ) ) : <EOL> if ( ret [ i ] == '<STR_LIT:U+002C>' ) : <EOL> return [ int ( ret [ <NUM_LIT:0> : i ] ) , ret [ i + <NUM_LIT:1> : - <NUM_LIT:9> ] ] <EOL> def Send ( self , socketId = None , cmd = None , check = False ) : <EOL> """<STR_LIT>""" <EOL> if socketId is None : <EOL> socketId = self . socketId <EOL> self . socketId = socketId <EOL> err , msg = self . __sendAndReceive ( socketId , cmd ) <EOL> if err != <NUM_LIT:0> and check : <EOL> raise XPSException ( msg ) <EOL> return err , msg <EOL> def TCP_ConnectToServer ( self , IP , port , timeOut ) : <EOL> socketId = <NUM_LIT:0> <EOL> if ( XPS . __nbSockets < self . MAX_NB_SOCKETS ) : <EOL> while ( XPS . __usedSockets [ socketId ] == <NUM_LIT:1> and socketId < self . MAX_NB_SOCKETS ) : <EOL> socketId += <NUM_LIT:1> <EOL> self . socketId = socketId <EOL> if ( socketId == self . MAX_NB_SOCKETS ) : <EOL> return - <NUM_LIT:1> <EOL> else : <EOL> return - <NUM_LIT:1> <EOL> XPS . __usedSockets [ socketId ] = <NUM_LIT:1> <EOL> XPS . __nbSockets += <NUM_LIT:1> <EOL> try : <EOL> XPS . __sockets [ socketId ] = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) <EOL> XPS . __sockets [ socketId ] . connect ( ( IP , port ) ) <EOL> XPS . __sockets [ socketId ] . settimeout ( timeOut ) <EOL> XPS . __sockets [ socketId ] . setblocking ( <NUM_LIT:1> ) <EOL> except socket . error : <EOL> return - <NUM_LIT:1> <EOL> return socketId <EOL> def TCP_SetTimeout ( self , socketId , timeOut ) : <EOL> if ( XPS . __usedSockets [ socketId ] == <NUM_LIT:1> ) : <EOL> XPS . __sockets [ socketId ] . settimeout ( timeOut ) <EOL> def TCP_CloseSocket ( self , socketId ) : <EOL> if ( socketId >= <NUM_LIT:0> and socketId < self . MAX_NB_SOCKETS ) : <EOL> try : <EOL> XPS . __sockets [ socketId ] . close ( ) <EOL> XPS . __usedSockets [ socketId ] = <NUM_LIT:0> <EOL> XPS . __nbSockets -= <NUM_LIT:1> <EOL> except socket . error : <EOL> pass <EOL> def GetLibraryVersion ( self ) : <EOL> return [ '<STR_LIT>' ] <EOL> def ControllerMotionKernelTimeLoadGet ( self , socketId = None ) : <EOL> command = '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId = socketId , cmd = command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def ControllerStatusGet ( self , socketId = None ) : <EOL> error , returnedString = self . Send ( socketId = socketId , <EOL> cmd = '<STR_LIT>' , check = True ) <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def ControllerStatusStringGet ( self , socketId , ControllerStatusCode ) : <EOL> command = '<STR_LIT>' % str ( ControllerStatusCode ) <EOL> return self . Send ( socketId , command ) <EOL> def ElapsedTimeGet ( self , socketId = None ) : <EOL> command = '<STR_LIT>' <EOL> [ error , returnedString ] = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def ErrorStringGet ( self , socketId , ErrorCode ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % str ( ErrorCode ) ) <EOL> def FirmwareVersionGet ( self , socketId = None ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def TCLScriptExecute ( self , socketId , TCLFileName , TaskName , ParametersList ) : <EOL> command = '<STR_LIT>' + TCLFileName + '<STR_LIT:U+002C>' + TaskName + '<STR_LIT:U+002C>' + ParametersList + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def TCLScriptExecuteAndWait ( self , socketId , TCLFileName , TaskName , InputParametersList ) : <EOL> command = '<STR_LIT>' + TCLFileName + '<STR_LIT:U+002C>' + TaskName + '<STR_LIT:U+002C>' + InputParametersList + '<STR_LIT>' <EOL> return self . Send ( socketId , command ) <EOL> def TCLScriptExecuteWithPriority ( self , socketId , TCLFileName , TaskName , TaskPriorityLevel , ParametersList ) : <EOL> command = '<STR_LIT>' + TCLFileName + '<STR_LIT:U+002C>' + TaskName + '<STR_LIT:U+002C>' + TaskPriorityLevel + '<STR_LIT:U+002C>' + ParametersList + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def TCLScriptKill ( self , socketId , TaskName ) : <EOL> command = '<STR_LIT>' + TaskName + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def TimerGet ( self , socketId , TimerName ) : <EOL> command = '<STR_LIT>' + TimerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def TimerSet ( self , socketId , TimerName , FrequencyTicks ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ( TimerName , str ( FrequencyTicks ) ) ) <EOL> def Reboot ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def Login ( self , socketId , Name , Password ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % ( Name , Password ) ) <EOL> def CloseAllOtherSockets ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def HardwareDateAndTimeGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def HardwareDateAndTimeSet ( self , socketId , DateAndTime ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % DateAndTime ) <EOL> def EventAdd ( self , socketId , PositionerName , EventName , EventParameter , ActionName , ActionParameter1 , ActionParameter2 , ActionParameter3 ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + EventName + '<STR_LIT:U+002C>' + EventParameter + '<STR_LIT:U+002C>' + ActionName + '<STR_LIT:U+002C>' + ActionParameter1 + '<STR_LIT:U+002C>' + ActionParameter2 + '<STR_LIT:U+002C>' + ActionParameter3 + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def EventGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> return self . Send ( socketId , command ) <EOL> def EventRemove ( self , socketId , PositionerName , EventName , EventParameter ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + EventName + '<STR_LIT:U+002C>' + EventParameter + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def EventWait ( self , socketId , PositionerName , EventName , EventParameter ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + EventName + '<STR_LIT:U+002C>' + EventParameter + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def EventExtendedConfigurationTriggerSet ( self , socketId , ExtendedEventName , EventParameter1 , EventParameter2 , EventParameter3 , EventParameter4 ) : <EOL> command = '<STR_LIT>' <EOL> for i in range ( len ( ExtendedEventName ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += ExtendedEventName [ i ] + '<STR_LIT:U+002C>' + EventParameter1 [ i ] + '<STR_LIT:U+002C>' + EventParameter2 [ i ] + '<STR_LIT:U+002C>' + EventParameter3 [ i ] + '<STR_LIT:U+002C>' + EventParameter4 [ i ] <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def EventExtendedConfigurationTriggerGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def EventExtendedConfigurationActionSet ( self , socketId , ExtendedActionName , ActionParameter1 , ActionParameter2 , ActionParameter3 , ActionParameter4 ) : <EOL> command = '<STR_LIT>' <EOL> for i in range ( len ( ExtendedActionName ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += ExtendedActionName [ i ] + '<STR_LIT:U+002C>' + ActionParameter1 [ i ] + '<STR_LIT:U+002C>' + ActionParameter2 [ i ] + '<STR_LIT:U+002C>' + ActionParameter3 [ i ] + '<STR_LIT:U+002C>' + ActionParameter4 [ i ] <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def EventExtendedConfigurationActionGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def EventExtendedStart ( self , socketId ) : <EOL> command = '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def EventExtendedAllGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def EventExtendedGet ( self , socketId , ID ) : <EOL> return self . Send ( socketId , '<STR_LIT>' + str ( ID ) + '<STR_LIT>' ) <EOL> def EventExtendedRemove ( self , socketId , ID ) : <EOL> return self . Send ( socketId , '<STR_LIT>' + str ( ID ) + '<STR_LIT:)>' ) <EOL> def EventExtendedWait ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringConfigurationGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringConfigurationSet ( self , socketId , Type ) : <EOL> command = '<STR_LIT>' <EOL> for i in range ( len ( Type ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += Type [ i ] <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GatheringCurrentNumberGet ( self , socketId ) : <EOL> command = '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GatheringStopAndSave ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringDataAcquire ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringDataGet ( self , socketId , IndexPoint ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % str ( IndexPoint ) ) <EOL> def GatheringDataMultipleLinesGet ( self , socketId , IndexPoint , NumberOfLines ) : <EOL> command = '<STR_LIT>' + str ( IndexPoint ) + '<STR_LIT:U+002C>' + str ( NumberOfLines ) + '<STR_LIT>' <EOL> return self . Send ( socketId , command ) <EOL> def GatheringReset ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringRun ( self , socketId , DataNumber , Divisor ) : <EOL> command = '<STR_LIT>' + str ( DataNumber ) + '<STR_LIT:U+002C>' + str ( Divisor ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GatheringRunAppend ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringStop ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringExternalConfigurationSet ( self , socketId , Type ) : <EOL> command = '<STR_LIT>' <EOL> for i in range ( len ( Type ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += Type [ i ] <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GatheringExternalConfigurationGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringExternalCurrentNumberGet ( self , socketId ) : <EOL> command = '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GatheringExternalDataGet ( self , socketId , IndexPoint ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % str ( IndexPoint ) ) <EOL> def GatheringExternalStopAndSave ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GlobalArrayGet ( self , socketId , Number ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % str ( Number ) ) <EOL> def GlobalArraySet ( self , socketId , Number , ValueString ) : <EOL> command = '<STR_LIT>' + str ( Number ) + '<STR_LIT:U+002C>' + ValueString + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def DoubleGlobalArrayGet ( self , socketId , Number ) : <EOL> command = '<STR_LIT>' + str ( Number ) + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def DoubleGlobalArraySet ( self , socketId , Number , DoubleValue ) : <EOL> command = '<STR_LIT>' + str ( Number ) + '<STR_LIT:U+002C>' + str ( DoubleValue ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GPIOAnalogGet ( self , socketId , GPIOName ) : <EOL> command = '<STR_LIT>' <EOL> for i in range ( len ( GPIOName ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += GPIOName [ i ] + '<STR_LIT:U+002C>' + '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( len ( GPIOName ) ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GPIOAnalogSet ( self , socketId , GPIOName , AnalogOutputValue ) : <EOL> command = '<STR_LIT>' <EOL> for i in range ( len ( GPIOName ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += GPIOName [ i ] + '<STR_LIT:U+002C>' + str ( AnalogOutputValue [ i ] ) <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GPIOAnalogGainGet ( self , socketId , GPIOName ) : <EOL> command = '<STR_LIT>' <EOL> for i in range ( len ( GPIOName ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += GPIOName [ i ] + '<STR_LIT:U+002C>' + '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( len ( GPIOName ) ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GPIOAnalogGainSet ( self , socketId , GPIOName , AnalogInputGainValue ) : <EOL> command = '<STR_LIT>' <EOL> for i in range ( len ( GPIOName ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += GPIOName [ i ] + '<STR_LIT:U+002C>' + str ( AnalogInputGainValue [ i ] ) <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GPIODigitalGet ( self , socketId , GPIOName ) : <EOL> command = '<STR_LIT>' + GPIOName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def GPIODigitalSet ( self , socketId , GPIOName , Mask , DigitalOutputValue ) : <EOL> command = '<STR_LIT>' + GPIOName + '<STR_LIT:U+002C>' + str ( Mask ) + '<STR_LIT:U+002C>' + str ( DigitalOutputValue ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GroupAccelerationSetpointGet ( self , socketId , GroupName , nbElement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( nbElement ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( nbElement ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupAnalogTrackingModeEnable ( self , socketId , GroupName , Type ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + Type + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GroupAnalogTrackingModeDisable ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GroupCorrectorOutputGet ( self , socketId , GroupName , nbElement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( nbElement ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( nbElement ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupCurrentFollowingErrorGet ( self , socketId , GroupName , nbElement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( nbElement ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( nbElement ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupHomeSearch ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupHomeSearchAndRelativeMove ( self , socketId , GroupName , TargetDisplacement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( len ( TargetDisplacement ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += str ( TargetDisplacement [ i ] ) <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GroupInitialize ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupInitializeWithEncoderCalibration ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupJogParametersSet ( self , socketId , GroupName , Velocity , Acceleration ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( len ( Velocity ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += str ( Velocity [ i ] ) + '<STR_LIT:U+002C>' + str ( Acceleration [ i ] ) <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GroupJogParametersGet ( self , socketId , GroupName , nbElement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( nbElement ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += '<STR_LIT>' + '<STR_LIT:U+002C>' + '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( nbElement * <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupJogCurrentGet ( self , socketId , GroupName , nbElement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( nbElement ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += '<STR_LIT>' + '<STR_LIT:U+002C>' + '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( nbElement * <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupJogModeEnable ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupJogModeDisable ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupKill ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupMoveAbort ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupMoveAbsolute ( self , socketId , GroupName , TargetPosition ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( len ( TargetPosition ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += str ( TargetPosition [ i ] ) <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GroupMoveRelative ( self , socketId , GroupName , TargetDisplacement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( len ( TargetDisplacement ) ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += str ( TargetDisplacement [ i ] ) <EOL> command += '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GroupMotionDisable ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupMotionEnable ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupPositionCorrectedProfilerGet ( self , socketId , GroupName , PositionX , PositionY ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + str ( PositionX ) + '<STR_LIT:U+002C>' + str ( PositionY ) + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupPositionCurrentGet ( self , socketId , GroupName , nbElement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( nbElement ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( nbElement ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupPositionPCORawEncoderGet ( self , socketId , GroupName , PositionX , PositionY ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + str ( PositionX ) + '<STR_LIT:U+002C>' + str ( PositionY ) + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupPositionSetpointGet ( self , socketId , GroupName , nbElement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( nbElement ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( nbElement ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupPositionTargetGet ( self , socketId , GroupName , nbElement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( nbElement ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( nbElement ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupReferencingActionExecute ( self , socketId , PositionerName , ReferencingAction , ReferencingSensor , ReferencingParameter ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + ReferencingAction + '<STR_LIT:U+002C>' + ReferencingSensor + '<STR_LIT:U+002C>' + str ( ReferencingParameter ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GroupReferencingStart ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupReferencingStop ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def GroupStatusGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def GroupStatusStringGet ( self , socketId , GroupStatusCode ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % str ( GroupStatusCode ) ) <EOL> def GroupVelocityCurrentGet ( self , socketId , GroupName , nbElement ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' <EOL> for i in range ( nbElement ) : <EOL> if ( i > <NUM_LIT:0> ) : <EOL> command += '<STR_LIT:U+002C>' <EOL> command += '<STR_LIT>' <EOL> command += '<STR_LIT:)>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( nbElement ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def KillAll ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def PositionerAnalogTrackingPositionParametersGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerAnalogTrackingPositionParametersSet ( self , socketId , PositionerName , GPIOName , Offset , Scale , Velocity , Acceleration ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + GPIOName + '<STR_LIT:U+002C>' + str ( Offset ) + '<STR_LIT:U+002C>' + str ( Scale ) + '<STR_LIT:U+002C>' + str ( Velocity ) + '<STR_LIT:U+002C>' + str ( Acceleration ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerAnalogTrackingVelocityParametersGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:6> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerAnalogTrackingVelocityParametersSet ( self , socketId , PositionerName , GPIOName , Offset , Scale , DeadBandThreshold , Order , Velocity , Acceleration ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + GPIOName + '<STR_LIT:U+002C>' + str ( Offset ) + '<STR_LIT:U+002C>' + str ( Scale ) + '<STR_LIT:U+002C>' + str ( DeadBandThreshold ) + '<STR_LIT:U+002C>' + str ( Order ) + '<STR_LIT:U+002C>' + str ( Velocity ) + '<STR_LIT:U+002C>' + str ( Acceleration ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerBacklashGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerBacklashSet ( self , socketId , PositionerName , BacklashValue ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( BacklashValue ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerBacklashEnable ( self , socketId , PositionerName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % PositionerName ) <EOL> def PositionerBacklashDisable ( self , socketId , PositionerName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % PositionerName ) <EOL> def PositionerCorrectorNotchFiltersSet ( self , socketId , PositionerName , NotchFrequency1 , NotchBandwith1 , NotchGain1 , NotchFrequency2 , NotchBandwith2 , NotchGain2 ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( NotchFrequency1 ) + '<STR_LIT:U+002C>' + str ( NotchBandwith1 ) + '<STR_LIT:U+002C>' + str ( NotchGain1 ) + '<STR_LIT:U+002C>' + str ( NotchFrequency2 ) + '<STR_LIT:U+002C>' + str ( NotchBandwith2 ) + '<STR_LIT:U+002C>' + str ( NotchGain2 ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerCorrectorNotchFiltersGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:6> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerCorrectorPIDFFAccelerationSet ( self , socketId , PositionerName , ClosedLoopStatus , KP , KI , KD , KS , IntegrationTime , <EOL> DerivativeFilterCutOffFrequency , GKP , GKI , GKD , KForm , FeedForwardGainAcceleration ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( ClosedLoopStatus ) + '<STR_LIT:U+002C>' + str ( KP ) + '<STR_LIT:U+002C>' + str ( KI ) + '<STR_LIT:U+002C>' + str ( KD ) + '<STR_LIT:U+002C>' + str ( KS ) + '<STR_LIT:U+002C>' + str ( IntegrationTime ) + '<STR_LIT:U+002C>' + str ( DerivativeFilterCutOffFrequency ) + '<STR_LIT:U+002C>' + str ( GKP ) + '<STR_LIT:U+002C>' + str ( GKI ) + '<STR_LIT:U+002C>' + str ( GKD ) + '<STR_LIT:U+002C>' + str ( KForm ) + '<STR_LIT:U+002C>' + str ( FeedForwardGainAcceleration ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerCorrectorPIDFFAccelerationGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:12> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerCorrectorPIDFFVelocitySet ( self , socketId , PositionerName , ClosedLoopStatus , KP , KI , KD , KS , IntegrationTime , DerivativeFilterCutOffFrequency , GKP , GKI , GKD , KForm , FeedForwardGainVelocity ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( ClosedLoopStatus ) + '<STR_LIT:U+002C>' + str ( KP ) + '<STR_LIT:U+002C>' + str ( KI ) + '<STR_LIT:U+002C>' + str ( KD ) + '<STR_LIT:U+002C>' + str ( KS ) + '<STR_LIT:U+002C>' + str ( IntegrationTime ) + '<STR_LIT:U+002C>' + str ( DerivativeFilterCutOffFrequency ) + '<STR_LIT:U+002C>' + str ( GKP ) + '<STR_LIT:U+002C>' + str ( GKI ) + '<STR_LIT:U+002C>' + str ( GKD ) + '<STR_LIT:U+002C>' + str ( KForm ) + '<STR_LIT:U+002C>' + str ( FeedForwardGainVelocity ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerCorrectorPIDFFVelocityGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:12> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerCorrectorPIDDualFFVoltageSet ( self , socketId , PositionerName , ClosedLoopStatus , KP , KI , KD , KS , IntegrationTime , DerivativeFilterCutOffFrequency , GKP , GKI , GKD , KForm , FeedForwardGainVelocity , FeedForwardGainAcceleration , Friction ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( ClosedLoopStatus ) + '<STR_LIT:U+002C>' + str ( KP ) + '<STR_LIT:U+002C>' + str ( KI ) + '<STR_LIT:U+002C>' + str ( KD ) + '<STR_LIT:U+002C>' + str ( KS ) + '<STR_LIT:U+002C>' + str ( IntegrationTime ) + '<STR_LIT:U+002C>' + str ( DerivativeFilterCutOffFrequency ) + '<STR_LIT:U+002C>' + str ( GKP ) + '<STR_LIT:U+002C>' + str ( GKI ) + '<STR_LIT:U+002C>' + str ( GKD ) + '<STR_LIT:U+002C>' + str ( KForm ) + '<STR_LIT:U+002C>' + str ( FeedForwardGainVelocity ) + '<STR_LIT:U+002C>' + str ( FeedForwardGainAcceleration ) + '<STR_LIT:U+002C>' + str ( Friction ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerCorrectorPIDDualFFVoltageGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerCorrectorPIPositionSet ( self , socketId , PositionerName , ClosedLoopStatus , KP , KI , IntegrationTime ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( ClosedLoopStatus ) + '<STR_LIT:U+002C>' + str ( KP ) + '<STR_LIT:U+002C>' + str ( KI ) + '<STR_LIT:U+002C>' + str ( IntegrationTime ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerCorrectorPIPositionGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerCorrectorTypeGet ( self , socketId , PositionerName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % PositionerName ) <EOL> def PositionerCurrentVelocityAccelerationFiltersGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerCurrentVelocityAccelerationFiltersSet ( self , socketId , PositionerName , CurrentVelocityCutOffFrequency , CurrentAccelerationCutOffFrequency ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( CurrentVelocityCutOffFrequency ) + '<STR_LIT:U+002C>' + str ( CurrentAccelerationCutOffFrequency ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerDriverFiltersGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:5> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerDriverFiltersSet ( self , socketId , PositionerName , KI , NotchFrequency , NotchBandwidth , NotchGain , LowpassFrequency ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( KI ) + '<STR_LIT:U+002C>' + str ( NotchFrequency ) + '<STR_LIT:U+002C>' + str ( NotchBandwidth ) + '<STR_LIT:U+002C>' + str ( NotchGain ) + '<STR_LIT:U+002C>' + str ( LowpassFrequency ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerDriverPositionOffsetsGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerDriverStatusGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def PositionerDriverStatusStringGet ( self , socketId , PositionerDriverStatus ) : <EOL> command = '<STR_LIT>' + str ( PositionerDriverStatus ) + '<STR_LIT>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerEncoderAmplitudeValuesGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerEncoderCalibrationParametersGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerErrorGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def PositionerErrorRead ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def PositionerErrorStringGet ( self , socketId , PositionerErrorCode ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % str ( PositionerErrorCode ) ) <EOL> def PositionerExcitationSignalGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerExcitationSignalSet ( self , socketId , PositionerName , Mode , Frequency , Amplitude , Time ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( Mode ) + '<STR_LIT:U+002C>' + str ( Frequency ) + '<STR_LIT:U+002C>' + str ( Amplitude ) + '<STR_LIT:U+002C>' + str ( Time ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerExternalLatchPositionGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def PositionerHardwareStatusGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def PositionerHardwareStatusStringGet ( self , socketId , PositionerHardwareStatus ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % str ( PositionerHardwareStatus ) ) <EOL> def PositionerHardInterpolatorFactorGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def PositionerHardInterpolatorFactorSet ( self , socketId , PositionerName , InterpolationFactor ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( InterpolationFactor ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerMaximumVelocityAndAccelerationGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerMotionDoneGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:5> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerMotionDoneSet ( self , socketId , PositionerName , PositionWindow , VelocityWindow , CheckingTime , MeanPeriod , TimeOut ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( PositionWindow ) + '<STR_LIT:U+002C>' + str ( VelocityWindow ) + '<STR_LIT:U+002C>' + str ( CheckingTime ) + '<STR_LIT:U+002C>' + str ( MeanPeriod ) + '<STR_LIT:U+002C>' + str ( TimeOut ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerPositionCompareAquadBAlwaysEnable ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerPositionCompareAquadBWindowedGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:3> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerPositionCompareAquadBWindowedSet ( self , socketId , PositionerName , MinimumPosition , MaximumPosition ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( MinimumPosition ) + '<STR_LIT:U+002C>' + str ( MaximumPosition ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerPositionCompareGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerPositionCompareSet ( self , socketId , PositionerName , MinimumPosition , MaximumPosition , PositionStep ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( MinimumPosition ) + '<STR_LIT:U+002C>' + str ( MaximumPosition ) + '<STR_LIT:U+002C>' + str ( PositionStep ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerPositionCompareEnable ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerPositionCompareDisable ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerPositionComparePulseParametersGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerPositionComparePulseParametersSet ( self , socketId , PositionerName , PCOPulseWidth , EncoderSettlingTime ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( PCOPulseWidth ) + '<STR_LIT:U+002C>' + str ( EncoderSettlingTime ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerRawEncoderPositionGet ( self , socketId , PositionerName , UserEncoderPosition ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( UserEncoderPosition ) + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def PositionersEncoderIndexDifferenceGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def PositionerSGammaExactVelocityAjustedDisplacementGet ( self , socketId , PositionerName , DesiredDisplacement ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( DesiredDisplacement ) + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def PositionerSGammaParametersGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerSGammaParametersSet ( self , socketId , PositionerName , Velocity , Acceleration , MinimumTjerkTime , MaximumTjerkTime ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( Velocity ) + '<STR_LIT:U+002C>' + str ( Acceleration ) + '<STR_LIT:U+002C>' + str ( MinimumTjerkTime ) + '<STR_LIT:U+002C>' + str ( MaximumTjerkTime ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerSGammaPreviousMotionTimesGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerStageParameterGet ( self , socketId , PositionerName , ParameterName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + ParameterName + '<STR_LIT>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerStageParameterSet ( self , socketId , PositionerName , ParameterName , ParameterValue ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + ParameterName + '<STR_LIT:U+002C>' + ParameterValue + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerTimeFlasherGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerTimeFlasherSet ( self , socketId , PositionerName , MinimumPosition , MaximumPosition , TimeInterval ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( MinimumPosition ) + '<STR_LIT:U+002C>' + str ( MaximumPosition ) + '<STR_LIT:U+002C>' + str ( TimeInterval ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerTimeFlasherEnable ( self , socketId , PositionerName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % PositionerName ) <EOL> def PositionerTimeFlasherDisable ( self , socketId , PositionerName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % PositionerName ) <EOL> def PositionerUserTravelLimitsGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerUserTravelLimitsSet ( self , socketId , PositionerName , UserMinimumTarget , UserMaximumTarget ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( UserMinimumTarget ) + '<STR_LIT:U+002C>' + str ( UserMaximumTarget ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerDACOffsetGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerDACOffsetSet ( self , socketId , PositionerName , DACOffset1 , DACOffset2 ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( DACOffset1 ) + '<STR_LIT:U+002C>' + str ( DACOffset2 ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerDACOffsetDualGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerDACOffsetDualSet ( self , socketId , PositionerName , PrimaryDACOffset1 , PrimaryDACOffset2 , SecondaryDACOffset1 , SecondaryDACOffset2 ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( PrimaryDACOffset1 ) + '<STR_LIT:U+002C>' + str ( PrimaryDACOffset2 ) + '<STR_LIT:U+002C>' + str ( SecondaryDACOffset1 ) + '<STR_LIT:U+002C>' + str ( SecondaryDACOffset2 ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def PositionerCorrectorAutoTuning ( self , socketId , PositionerName , TuningMode ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT:U+002C>' + str ( TuningMode ) + '<STR_LIT>' <EOL> return self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:3> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def PositionerAccelerationAutoScaling ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def MultipleAxesPVTVerification ( self , socketId , GroupName , TrajectoryFileName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + TrajectoryFileName + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def MultipleAxesPVTVerificationResultGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def MultipleAxesPVTExecution ( self , socketId , GroupName , TrajectoryFileName , ExecutionNumber ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + TrajectoryFileName + '<STR_LIT:U+002C>' + str ( ExecutionNumber ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def MultipleAxesPVTParametersGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def MultipleAxesPVTPulseOutputSet ( self , socketId , GroupName , StartElement , EndElement , TimeInterval ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + str ( StartElement ) + '<STR_LIT:U+002C>' + str ( EndElement ) + '<STR_LIT:U+002C>' + str ( TimeInterval ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def MultipleAxesPVTPulseOutputGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:3> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def SingleAxisSlaveModeEnable ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def SingleAxisSlaveModeDisable ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def SingleAxisSlaveParametersSet ( self , socketId , GroupName , PositionerName , Ratio ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + PositionerName + '<STR_LIT:U+002C>' + str ( Ratio ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def SingleAxisSlaveParametersGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def SpindleSlaveModeEnable ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def SpindleSlaveModeDisable ( self , socketId , GroupName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % GroupName ) <EOL> def SpindleSlaveParametersSet ( self , socketId , GroupName , PositionerName , Ratio ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + PositionerName + '<STR_LIT:U+002C>' + str ( Ratio ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def SpindleSlaveParametersGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> return retList <EOL> def GroupSpinParametersSet ( self , socketId , GroupName , Velocity , Acceleration ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + str ( Velocity ) + '<STR_LIT:U+002C>' + str ( Acceleration ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def GroupSpinParametersGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupSpinCurrentGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def GroupSpinModeStop ( self , socketId , GroupName , Acceleration ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + str ( Acceleration ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def XYLineArcVerification ( self , socketId , GroupName , TrajectoryFileName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + TrajectoryFileName + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def XYLineArcVerificationResultGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def XYLineArcExecution ( self , socketId , GroupName , TrajectoryFileName , Velocity , Acceleration , ExecutionNumber ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + TrajectoryFileName + '<STR_LIT:U+002C>' + str ( Velocity ) + '<STR_LIT:U+002C>' + str ( Acceleration ) + '<STR_LIT:U+002C>' + str ( ExecutionNumber ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def XYLineArcParametersGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:3> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def XYLineArcPulseOutputSet ( self , socketId , GroupName , StartLength , EndLength , PathLengthInterval ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + str ( StartLength ) + '<STR_LIT:U+002C>' + str ( EndLength ) + '<STR_LIT:U+002C>' + str ( PathLengthInterval ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def XYLineArcPulseOutputGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:3> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def XYZGroupPositionCorrectedProfilerGet ( self , socketId , GroupName , PositionX , PositionY , PositionZ ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + str ( PositionX ) + '<STR_LIT:U+002C>' + str ( PositionY ) + '<STR_LIT:U+002C>' + str ( PositionZ ) + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:3> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def XYZSplineVerification ( self , socketId , GroupName , TrajectoryFileName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + TrajectoryFileName + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def XYZSplineVerificationResultGet ( self , socketId , PositionerName ) : <EOL> command = '<STR_LIT>' + PositionerName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:4> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def XYZSplineExecution ( self , socketId , GroupName , TrajectoryFileName , Velocity , Acceleration ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT:U+002C>' + TrajectoryFileName + '<STR_LIT:U+002C>' + str ( Velocity ) + '<STR_LIT:U+002C>' + str ( Acceleration ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def XYZSplineParametersGet ( self , socketId , GroupName ) : <EOL> command = '<STR_LIT>' + GroupName + '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:3> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def OptionalModuleExecute ( self , socketId , ModuleFileName , TaskName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % ( ModuleFileName , TaskName ) ) <EOL> def OptionalModuleKill ( self , socketId , TaskName ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % TaskName ) <EOL> def EEPROMCIESet ( self , socketId , CardNumber , ReferenceString ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % ( str ( CardNumber ) , ReferenceString ) ) <EOL> def EEPROMDACOffsetCIESet ( self , socketId , PlugNumber , DAC1Offset , DAC2Offset ) : <EOL> command = '<STR_LIT>' + str ( PlugNumber ) + '<STR_LIT:U+002C>' + str ( DAC1Offset ) + '<STR_LIT:U+002C>' + str ( DAC2Offset ) + '<STR_LIT:)>' <EOL> return self . Send ( socketId , command ) <EOL> def EEPROMDriverSet ( self , socketId , PlugNumber , ReferenceString ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % ( str ( PlugNumber ) , ReferenceString ) ) <EOL> def EEPROMINTSet ( self , socketId , CardNumber , ReferenceString ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % ( str ( CardNumber ) , ReferenceString ) ) <EOL> def CPUCoreAndBoardSupplyVoltagesGet ( self , socketId ) : <EOL> command = '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:8> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def CPUTemperatureAndFanSpeedGet ( self , socketId ) : <EOL> command = '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:2> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def ActionListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def ActionExtendedListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def APIExtendedListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def APIListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def ControllerStatusListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def ErrorListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def EventListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringExtendedListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringExternalListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GroupStatusListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def HardwareInternalListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def HardwareDriverAndStageGet ( self , socketId , PlugNumber ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % str ( PlugNumber ) ) <EOL> def ObjectsListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def PositionerErrorListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def PositionerHardwareStatusListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def PositionerDriverStatusListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def ReferencingActionListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def ReferencingSensorListGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def GatheringUserDatasGet ( self , socketId ) : <EOL> command = '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:8> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def ControllerMotionKernelPeriodMinMaxGet ( self , socketId ) : <EOL> command = '<STR_LIT>' <EOL> error , returnedString = self . Send ( socketId , command ) <EOL> if ( error != <NUM_LIT:0> ) : <EOL> return [ error , returnedString ] <EOL> i , j , retList = <NUM_LIT:0> , <NUM_LIT:0> , [ error ] <EOL> for paramNb in range ( <NUM_LIT:6> ) : <EOL> while ( ( i + j ) < len ( returnedString ) and returnedString [ i + j ] != '<STR_LIT:U+002C>' ) : <EOL> j += <NUM_LIT:1> <EOL> retList . append ( eval ( returnedString [ i : i + j ] ) ) <EOL> i , j = i + j + <NUM_LIT:1> , <NUM_LIT:0> <EOL> return retList <EOL> def ControllerMotionKernelPeriodMinMaxReset ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def SocketsStatusGet ( self , socketId ) : <EOL> return self . Send ( socketId , '<STR_LIT>' ) <EOL> def TestTCP ( self , socketId , InputString ) : <EOL> return self . Send ( socketId , '<STR_LIT>' % InputString ) </s>
