Table Of Contents

GPIB and VISA Functions

Version:
    Last Modified: June 21, 2017

    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
    • 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)
    • 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
    • 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
    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
    • 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
    • write buffer
    • session out
    • return count

    Recently Viewed Topics