How a GPIB Language Interface Works

Publish Date: Sep 06, 2006 | 12 Ratings | 3.50 out of 5 |  PDF

A language interface usually consists of two main parts: the declaration file and the GPIB language library (or simply, the language interface file). There is a different language interface for each programming language (see the related link GPIB Language Interfaces), and sometimes for different versions of the same programming language.

This is how the GPIB language interfaces work:










The Declaration File contains NI-488 and NI-488.2 function prototypes and various predefined constants associated with the language interface. You must include the Declaration File with your GPIB Program Code, in order to make your GPIB application.

The Language Interface is a set of functions that call the GPIB Driver with the requested operation. For example, if you write a message to your GPIB instrument, you might use the ibwrt function. This function is declared in the Declaration File and defined in the Language Interface.

The GPIB Driver is the software that controls the GPIB hardware. It abstracts the low-level calls that make the board work, so that you can use the Language Interface to control the board. (Otherwise, you would have to learn register-level programming just to talk to your instrument!)

The GPIB Interface is the actual GPIB hardware, either installed in your computer or as an external controller (for example, GPIB-ENET).

Please note that the word interface is used quite often in GPIB. A language interface is an interface between a programming language and the GPIB driver. The GPIB driver is an interface between the GPIB program and the GPIB hardware. The GPIB hardware is an interface between the computer and the instrument.


Back to Top

Language

Bookmark & Share

Ratings

Rate this document

Answered Your Question?
Yes No

Submit