Table Of Contents

GPIB and VISA Functions

Version:
    Last Modified: August 2, 2018

    The following table maps GPIB functions to the equivalent VISA functions.

    Table 1. GPIB and VISA Functions
    GPIB Action GPIB Function VISA Action VISA Function
    LabVIEW LabVIEW NXG Inputs Outputs LabVIEW NXG Inputs Outputs
    GPIB Clear
    • address string
    • status
    VISA Clear
    • session in (Instrument)
    • session out
    GPIB Read

    Note: Both Synchronous and Asynchronous I/O modes are supported.

    • timeout ms
    • address string
    • byte count
    • mode
    • data
    • status
    VISA Read

    Note: Only Asynchronous I/O mode is supported.

    • session in (GPIB Board Interface; Instrument)
    • byte count
    • session out
    • read buffer
    GPIB Serial Poll
    • address string
    • serial poll byte
    • status
    VISA Read STB
    • session in (Instrument)
    • session out
    • status byte
    GPIB Status:
    • ERR (Error Detected)
    • TIMO (Timeout)
    • END (EOI or EOS Detected)
    • SRQI (SRQ Detected while CIC)
    • CMPL (Operation Completed)
    • LOK (Lockout State)
    • REM (Remote State)
    • CIC (Controller-In-Charge)
    • ATN (Attention Asserted)
    • TACS (Talker Active)
    • LACS (Listener Active)
    • DTAS (Device Trigger State)
    • DCAS (Device Clear state)
    • address string
    • status
    • GPIB error
    • byte count
    VISA Property

    Note: Only a subset of status bits can be obtained:

    • SRQ State (SRQ Detected) while CIC)
    • REN State (Remote State)
    • Is CIC (Controller-In-Charge)
    • ATN State (Attention Asserted)
    • Address State (Talker Active or Listener Active)
    • session in (GPIB Board Interface)
      To get property—GPIB Board Interface»GPIB Settings»
      • Line SRQ State
      • Line REN State
      • Is Controller In Charge
      • Line ATN State
      • Addressed State
    • session out
    • State
    • error out—use this to detect errors such as VI_ERROR_TMO (Timeout)
    GPIB Trigger
    • address string
    • status
    VISA Software Trigger
    • session in (GPIB Board Interface, Instrument)
    • session out
    GPIB Wait:
    • Device Clear State
    • Device Trigger State
    • Listener Active
    • Talker Active
    • Controller-In-Charge
    • SRQ Detected while CIC
    • timeout ms
    • address string
    • wait state vector
    • status
    VISA Wait on Event:
    • Clear
    • Trigger
    • GPIB Listen
    • GPIB Talk
    • GPIB CIC
    • Service Request
    • wait timeout
    • session in (GPIB Board Interface)
    • event type in
    • session out
    • event type out
    • event out
    GPIB Wait:
    • Attention Asserted
    • Remote State
    • Lockout State
    • EOI or EOS Detected
    • timeout ms
    • address string
    • wait state vector
    • status

    VISA action does not support these events

    For the Attention Asserted and Remote State events, you can use a Loop to check the VISA Property of ATN State and REN State:

    To get property—

    • GPIB Board Interface»GPIB Settings»Line ATN State
    • GPIB Board Interface»GPIB Settings»Line REN State
    • Instrument»GPIB Settings»Line REN State
    GPIB Wait for RQS
    • address string
    • timeout ms
    • poll response byte
    VISA Wait on Event:
    • Service Request…
    • wait timeout
    • session in (Instrument)
    • event type in
    • session out
    • event type out
    • event out
    Followed by VISA Read STB
    • session in (Instrument)
    • session out
    • status byte
    GPIB Write

    Note: Both Synchronous and Asynchronous I/O modes are supported.

    • timeout ms
    • address string
    • data
    • mode
    • status
    VISA Write

    Note: Only Asynchronous I/O mode is supported.

    • session in (GPIB Board Interface, Instrument)
    • write buffer
    • session out
    • return count

    Recently Viewed Topics