GPIB

From SweepMe! Wiki
Revision as of 21:04, 11 July 2018 by Afischer (talk | contribs)
Jump to navigation Jump to search

SweepMe! relies on the pyvisa module [1].

Requirements

  • Install the latest version of ni-visa runtime [2]
  • Install the driver of your GPIB interface card or USB adapter which you get from the manufacturer
    • National Instruments [3]
    • Keithley/Tektronix KUSB-488B [4]
    • Keithley/Tektronic KUSB-488A [5]
    • Keysight [6]
    • Prologix GPIB controller [7]


Terminator / End-of-Line character

Typically, communication via GPIB does not require to set an End-of-Line (EOL) character. However, some devices expect and send special characters at the end of each message to indicate that the command/message is complete.

At the moment, EOL for GPIB is not fully implemented and one has to modify the pyvisa GPIBInstrument object, i.e. using

self.port.port.write_termination = "\r\n" self.port.port.read_termination = "\r\n"

  1. "\r\n" is here one example for using Carriage Return (CR) and Line Feed (LF) as terminator