element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum PyVisa | Trouble I identifying Resources | Rigol DS1054 | Keithly 2200-20-5
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 23 replies
  • Subscribers 287 subscribers
  • Views 5693 views
  • Users 0 members are here
  • ask_an_expert
  • USBTMC
  • automation
  • pyvisa
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

PyVisa | Trouble I identifying Resources | Rigol DS1054 | Keithly 2200-20-5

dustin1986
dustin1986 over 2 years ago

Hi I am new to automating lab equipment. I am playing around with an oscope and psu to learn. I am using the usb connections. I am using Manjaro linux. I have the usbtmc driver installed and working. My linux box does see the instruments when I plug them in. However, pyvisa doesnot seem to find them. I just get a long list of ASRL "devices" no way to identify which one is the hardware I attached.  

image

Does pyvisa not see the hardware or is thee another way to find devices?

  • Sign in to reply
  • Cancel

Top Replies

  • charlieo21
    charlieo21 over 2 years ago +2
    You can try this. i = 1 for key, value in rm.list_resources_info().items(): print('\nInstrument ', str(i), ': ', key) print(' Interface type: ', value.interface_type) print(' Interface board number…
  • baldengineer
    baldengineer over 2 years ago +1
    You need to create a udev rule for USBTMC devices. echo 'SUBSYSTEM=="usb", MODE="0666", GROUP="usbusers"' >> 99-com.rules sudo mv 99-com.rules /etc/udev/rules.d/99-com.rules Make sure you're in "usbusers…
  • baldengineer
    baldengineer over 2 years ago in reply to baldengineer +1
    Also also, "python-usbtmc" (via pip) can give you some troubleshooting information.
Parents
  • charlieo21
    charlieo21 over 2 years ago

    You can try this. 

    i = 1
    for key, value in rm.list_resources_info().items():
        print('\nInstrument ', str(i), ': ', key)
        print('  Interface type: ', value.interface_type)
        print('  Interface board number: ', value.interface_board_number)
        print('  Resource class: ', value.resource_class)
        print('  Resource name: ', value.resource_name)
        print('  Resource alias: ', value.alias)
        i += 1
    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago in reply to charlieo21

    On my Windows PC with Python 3.9, that works:

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dustin1986
    dustin1986 over 2 years ago in reply to Jan Cumps
    This reply was deleted.
    • Cancel
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago in reply to Jan Cumps

    ... and after adding a Rigol PSU:

    image

    I'm preparing for an analogue blog, related to op-amps , Schmitt triggers, and automating the measurements such a circuit. That's why my instruments are currently plugged in and visa-ready Nerd

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dustin1986
    dustin1986 over 2 years ago in reply to Jan Cumps

    I get this output ( 32 of them. I am only showing the first 2 because if I post the whole output it gets flagged as spam)

    Instrument  1 :  ASRL1::INSTR
      Interface type:  InterfaceType.asrl
      Interface board number:  1
      Resource class:  INSTR
      Resource name:  ASRL1::INSTR
      Resource alias:  None
    
    Instrument  2 :  ASRL2::INSTR
      Interface type:  InterfaceType.asrl
      Interface board number:  2
      Resource class:  INSTR
      Resource name:  ASRL2::INSTR
      Resource alias:  None
    

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 2 years ago in reply to dustin1986

    Indeed, those are serial entries. It does not seem to pick up the scope

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • charlieo21
    charlieo21 over 2 years ago in reply to dustin1986

    It's possible that is a read only access. Check this python - Unable to get full VISA address that includes the serial number - Stack Overflow

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • charlieo21
    charlieo21 over 2 years ago in reply to dustin1986

    It's possible that is a read only access. Check this python - Unable to get full VISA address that includes the serial number - Stack Overflow

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • dustin1986
    dustin1986 over 2 years ago in reply to charlieo21

    I will check out this possibility as soon as I get back from lunch. Many thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube