Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

How a GPIB Language Interface Works

11 ratings | 3.64 out of 5
Read in | Print
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.


11 ratings | 3.64 out of 5
Read in | Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).