qcodes/instrument_drivers/tektronix/Keithley_2600_channels.py
def _time_trace(self) -> np.ndarray:
        """
        The function that prepares a Lua script for timetrace data acquisition.

        Raises:
            RuntimeError: If no instrument attached to Parameter.
        """

        if self.instrument is None:
            raise RuntimeError("No instrument attached to Parameter.")

        channel = self.instrument.channel
        npts = self.instrument.timetrace_npts()
        dt = self.instrument.timetrace_dt()
        mode = self.instrument.timetrace_mode()

        mode_map = {"current": "i", "voltage": "v"}

        script = [
            f"{channel}.measure.count={npts}",
            f"oldint={channel}.measure.interval",
            f"{channel}.measure.interval={dt}",
            f"{channel}.nvbuffer1.clear()",
            f"{channel}.measure.{mode_map[mode]}({channel}.nvbuffer1)",
            f"{channel}.measure.interval=oldint",
            f"{channel}.measure.count=1",
            "format.data = format.REAL32",
            "format.byteorder = format.LITTLEENDIAN",
            f"printbuffer(1, {npts}, {channel}.nvbuffer1.readings)",
        ]

        return self.instrument._execute_lua(script, npts)

        The function that prepares a Lua script for timetrace data acquisition.

        Raises:
            RuntimeError: If no instrument attached to Parameter.
        
The function that prepares a Lua script for timetrace data acquisition.
The function that prepares a Lua script for timetrace data acquisition .
def _time_trace(self) -> np.ndarray:
        if self.instrument is None:
            raise RuntimeError("No instrument attached to Parameter.")
        channel = self.instrument.channel
        npts = self.instrument.timetrace_npts()
        dt = self.instrument.timetrace_dt()
        mode = self.instrument.timetrace_mode()
        mode_map = {"current": "i", "voltage": "v"}
        script = [
            f"{channel}.measure.count={npts}",
            f"oldint={channel}.measure.interval",
            f"{channel}.measure.interval={dt}",
            f"{channel}.nvbuffer1.clear()",
            f"{channel}.measure.{mode_map[mode]}({channel}.nvbuffer1)",
            f"{channel}.measure.interval=oldint",
            f"{channel}.measure.count=1",
            "format.data = format.REAL32",
            "format.byteorder = format.LITTLEENDIAN",
            f"printbuffer(1, {npts}, {channel}.nvbuffer1.readings)",
        ]
        return self.instrument._execute_lua(script, npts)
def _time_trace ( self ) -> np . ndarray : if self . instrument is None : raise RuntimeError ( "No instrument attached to Parameter." ) channel = self . instrument . channel npts = self . instrument . timetrace_npts ( ) dt = self . instrument . timetrace_dt ( ) mode = self . instrument . timetrace_mode ( ) mode_map = { "current" : "i" , "voltage" : "v" } script = [ f"{channel}.measure.count={npts}" , f"oldint={channel}.measure.interval" , f"{channel}.measure.interval={dt}" , f"{channel}.nvbuffer1.clear()" , f"{channel}.measure.{mode_map[mode]}({channel}.nvbuffer1)" , f"{channel}.measure.interval=oldint" , f"{channel}.measure.count=1" , "format.data = format.REAL32" , "format.byteorder = format.LITTLEENDIAN" , f"printbuffer(1, {npts}, {channel}.nvbuffer1.readings)" , ] return self . instrument . _execute_lua ( script , npts )
The function that prepares a Lua script for timetrace data acquisition.
The function that prepares a Lua script for timetrace data acquisition .
"""
        The function that prepares a Lua script for timetrace data acquisition.

        Raises:
            RuntimeError: If no instrument attached to Parameter.
        """
If no instrument attached to Parameter.
If no instrument attached to Parameter .
RuntimeError
self