Skip to content

Scan Set_path is not configured correctly #2

@mahdims98

Description

@mahdims98

The set_path function is not defined correctly in the scancontrol.py, and I didn't find anything related to it in the labview code

Image

get_path works correctly but I think if we want to set the path, we have to have separate functions for base folder and exp folder. It's already configured correctly in the labview.

These too function has to be added:

    def set_base_folder(self, path):
        """Sets the path associated with the scan.

        Args:
            path (str): Path for the scan.
        """

        command = f"{OHCcommands.w_sca}Base Folder:{path}"

        self.controller.write_control(command)

        return 0

    def set_exp_folder(self, path):
        """Sets the path associated with the scan.

        Args:
            path (str): Path for the scan.
        """

        command = f"{OHCcommands.w_sca}Exp Folder:{path}"

        self.controller.write_control(command)

        return 0

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions