Example Code

Language Interface: 32-bit Borland Delphi

Code and Documents

Attachment

This is the GPIB language interface for 32-bit Borland Delphi (version 2.0 and higher), a Win32 programming environment for creating 32-bit applications.

If you have Borland Delphi version 2.0, then download the "DelphiLI2.exe" file (in the example.zip file, below). This file contains the declaration file DPIB32.DCU (which is also the language interface file), DPIB32.PAS (the Delphi source code for DPIB32.DCU), and some sample programs.

If you have Borland Delphi version 3.0 or 4.0, then download the "DelphiLI3.exe" file (in the example.zip file, below). This file contains the declaration file DPIB32.DCU (which is also the language interface file), DPIB32.PAS (the Delphi source code for DPIB32.DCU), and some sample programs.


How to Use the 32-bit Borland Delphi Language Interface:
I. Overview

The 32-bit GPIB language interface for Borland Delphi contains the following files:
DPIB32.DCU: Delphi Unit module containing type definitions, various predefined constants, and NI-488.2 routine and NI-488 function prototypes
DPIB32.PAS: Delphi source code for DPIB32.DCU

II. Items to Include in Your GPIB Application

You must include the following line at the beginning of your application:
Uses DPIB32;

III. Compiling, Linking, and Running from the Borland Delphi Environment

From within the Borland Delphi environment, you can compile, link, and run your application. To compile and link a project, select the BUILD ALL item from the PROJECT menu. To run the project, select the RUN item from the RUN menu.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors