Exemple #1
0
    async def GroupMoveAbsolute(self, groupname="Group1.Pos", target=250.0):
        """
        Initiates an absolute move for a positioner or a group.
        """

        status, response = await self.aquery(
            "GroupMoveAbsolute({:}, {:.2f})".format(groupname, float(target)))
        if status != 0:
            raise fl_np.NewportXpsRLError(status, response)
Exemple #2
0
    async def GroupPositionTargetGet(self, groupname="Group1.Pos"):
        """
        The TargetPosition is the final target position commanded by the user.
        """

        status, response = await self.aquery(
            f"GroupPositionTargetGet({groupname}, double *)")
        if status != 0:
            raise fl_np.NewportXpsRLError(status, response)
        return float(response)
Exemple #3
0
    async def GroupPositionCurrentGet(self, groupname="Group1.Pos"):
        """
        The CurrentPosition is the encoder position of the stage after mapping corrections are
        applied. This is the actual position of the positioner at this moment of the query.
        """

        status, response = await self.aquery(
            f"GroupPositionCurrentGet({groupname}, double *)")
        if status != 0:
            raise fl_np.NewportXpsRLError(status, response)
        return float(response)
Exemple #4
0
    async def GroupPositionSetpointGet(self, groupname="Group1.Pos"):
        """
        The SetpointPosition is the profiler position. This is the position where the
        positioner should be according to the ideal theoretical motion profile.
        """

        status, response = await self.aquery(
            f"GroupPositionSetpointGet({groupname}, double *)")
        if status != 0:
            raise fl_np.NewportXpsRLError(status, response)
        return float(response)
Exemple #5
0
 async def Login(self, username, password):
     status, response = await self.aquery(f"Login({username}, {password}")
     if status != 0:
         raise fl_np.NewportXpsRLError(status, response)
Exemple #6
0
 async def ControllerStatusGet(self):
     status, response = await self.aquery("ControllerStatusGet(int *)")
     if status != 0:
         raise fl_np.NewportXpsRLError(status, response)
     return fl_np.NewportXpsRLControllerStatus(int(response))
Exemple #7
0
 async def FirmwareVersionGet(self):
     status, response = await self.aquery("FirmwareVersionGet(char *)")
     if status != 0:
         raise fl_np.NewportXpsRLError(status, response)
     return response