PH 415 Computer Interfacing
OSU logo
The content of this page is undergoing revision and will be moved to another site soon.
Instrumentation

Table of Contents

Instrument USB Interfaces

  • The USB test and measurement specifications provide the information necessary to communicate with compliant instruments. The GPIB over USB specifications are commonly used. Perusing these documents, one can readily understand why a dynamic library between Python and libusb or a substantial Python module would be so useful. Once you understand how to achieve communication over USB, then you can send commands and receive data according to the syntax for a particular instrument.
  • For Linux, the open source usbtmc driver can be downloaded from Agilent. Read the USBTMC Kernel Driver Documentation. Source code for the latest version of the Linux kernel is available here. The usbtmc driver also can be found as part of a LabView installation.

Viewing USB Device Parameters

  • Use control panel -> system -> hardware -> device manager to get some information about USB controllers and connected devices.
  • Unzip and execute usbview, a utility from M$ to see some detailed information about the USB configuration for the scope.
  • Unzip and execute SniffUSB to see the transactions with USB devices on your machine. The documentation is helpful. Hit the view log button to see some USB transactions. Be thankful than you do not have to deal with communications at this level.

Recognizing VISA Compatible Instruments

  • The program find visa devices uses PyVisa to find compatible instruments on the USB, the GPIB bus, com ports and lpt ports.

Virtual Instrument Software Architecture

Instrument Command Syntax