Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature] implement a way to check if a module is remote #64

Open
qku opened this issue Aug 28, 2023 · 3 comments
Open

[New Feature] implement a way to check if a module is remote #64

qku opened this issue Aug 28, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@qku
Copy link
Contributor

qku commented Aug 28, 2023

Feature Description

Sometimes it's nice to know if a module (hardware mostly probably) is running on a remote qudi instance. Some methods may work differently or not at all through a remote connection. In order to know when to use alternatives, the module that is connected to the remote module should know if it is remote.

Related Problem

No response

Considered Alternatives

There may be ways to use the module manager to find out if a module is remote, but these are likely difficult to access. Another alternative is to check if objects passed back from a module are of the netref type. This requires the passing of some kind of test object though.

Additional Context

No response

Contact Details

No response

@qku qku added the enhancement New feature or request label Aug 28, 2023
@Neverhorst
Copy link
Member

Neverhorst commented Sep 7, 2023

Just to clarify:
You want to check the connection to a module for remote access, right? E.g. something like:

class MyLogicModule(LogicBase):
    _my_hardware_module = Connector(...)

    def do_stuff(self, ...):
        if self._my_hardware_module.is_remote:
            ...

@qku
Copy link
Contributor Author

qku commented Sep 7, 2023

Yes, I would like to check if a module is remote from a connected module. I guess it does not make sense for a module to test if itself is remote, as the remoteness only stems from the relationship between two modules.

@Neverhorst
Copy link
Member

Exactly, that was my line of thought.
The checker on the Connector can surely be implemented and will probably come with the promised module management overhaul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants