Example #1
0
    def create_scope_module(self) -> tk_modules.BaseModule:
        """Create an instance of the ScopeModule.

        The resulting Module will have the nodetree accessible. The underlying
        zhinst.ziPython Module can be accessed through the `raw_module`
        property.

        The new instance establishes a new session to the DataServer.
        New instances should therefor be created carefully since they consume
        resources.

        The new module is not managed by toolkit. A managed instance is provided
        by the property `awg_module`.

        Returns:
            Created module
        """
        return tk_modules.BaseModule(
            self._session.daq_server.scopeModule(), self._session
        )
Example #2
0
    def create_precompensation_advisor_module(
        self,
    ) -> tk_modules.BaseModule:
        """Create an instance of the PrecompensationAdvisorModule.

        In contrast to ziPython.ziDAQServer.precompensationAdvisor() a nodetree property
        is added.

        The new instance establishes a new session to the DataServer.
        New instances should therefor be created carefully since they consume
        resources.

        The new module is not managed by toolkit. A managed instance is provided
        by the property `precompensation_advisor_module`.

        Returns:
            Created module
        """
        return tk_modules.BaseModule(
            self._session.daq_server.precompensationAdvisor(), self._session
        )