Skip to content

'USBInstrument' object has no attribute 'ask' #12

Description

@lafinney

Hi, I am trying to just save data from the tektronix DPO2024B oscilloscope, and am using a pretty simple code, but am getting this error in return: 'USBInstrument' object has no attribute 'ask'. Can someone help me understand how to fix this?

Thank you!

import os
import pyvisa
os.chdir('C:/Users/Lenovo/Desktop/ThorlabsKinesisControl/PyTektronixScope-master')

from PyTektronixScope import TektronixScope

rm = pyvisa.ResourceManager()
J = rm.list_resources()

scope = TektronixScope(J[0])
X,Y = scope.read_data_one_channel('CH2', t0 = 0, DeltaT = 1E-6, x_axis_out=True)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions