Skip to content

How to integrate InstrumentChannel class into VisaInstrument class #5595

Answered by jenshnielsen
paniash asked this question in Q&A
Discussion options

You must be logged in to vote

In the code that you have linked you have

class KeysightDSOX4104A(VisaInstrument):
    """
    This is the qcodes driver for the Keysight InfiniiVision DSOX4104A oscilloscope
    """

    def __init__(self, name: str, address: str, **kwargs) -> None:
        """
        Args:
            name: Name used internally by QCoDeS
            address: VISA resource address
        """
        super().__init__(name, address, terminator="\n", **kwargs)

        # Add channel to instrument
        for ch in [1, 2, 3, 4]:
            ch_name = f"ch{ch}"
            channel = DSOX4104AChannel(self, ch_name, ch)
            self.add_submodule(ch, channel)
            self.channels.append(channel)


H…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@paniash
Comment options

@jenshnielsen
Comment options

Answer selected by paniash
@paniash
Comment options

@jenshnielsen
Comment options

@paniash
Comment options

@jenshnielsen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants