• General
    • Automated Measurements Overview
    • System Requirements
    • Measurement Modes and Default Settings
  • Bode Automation Interface
    • Documentation
    • Command Reference
    • Changelog
  • SCPI
    • Documentation
    • Command Reference
    • Error Handling
    • Changelog

    Show / Hide Table of Contents
    • SCPI Overview
    • Getting Connected
      • Start SCPI server
      • Setup Connection
      • Usage of NI I/O Trace to monitor the SCPI traffic
    • Command Syntax
      • Introduction to the SCPI language
      • Data Formats
      • Data Transmission Formats
      • Suffixes
    • Status & Error Handling
      • Status Register System
      • Error and Event System
      • Error Handling
    • The Trigger System & Data Sychronization
      • Trigger System
      • Select the correct trigger source for :TRIG:SING
      • Synchronization
    • Coding & Examples
      • Reading the query buffer
      • Read buffer size
      • SCPI Python examples
      • Error Handling
    • List of Abbreviations
    • SCPI Changelog

    Read buffer size

    Whenever a query (write() command sending a string with a trailing "?") is sent to the SCPI server, the reply is stored in a buffer and can be retrieved using a read() command. With some programming languages the maximum number of characters that can be retrieved by a read command is defined and if the reply length exceeds this value, the remaining part will flow into the next read request.

    Using Python and the PyVisa package, the provided read() and query() methods take care automatically of this potential problem. These methods read and store the provided data iteratively in chunks till the end. Please refer to the PyVisa documentation for further details.

    With other languages and/or libraries it might be necessary to define a read buffer size large enough. Please be aware of this potential issue and refer to the used language/library documentation.

    Back to top Generated by DocFX