Example Code

Archived: Language Interface: 16-bit Microsoft QuickPascal

Code and Documents

Attachment

Overview


This document has been archived and is no longer updated by National Instruments.

This is the GPIB language interface for Microsoft QuickPascal, a DOS programming environment for creating 16-bit applications. Download the Qkpascal.zip file (in the example.zip file, below). This file contains the declaration file QPDECL.PAS, the language interface file PIB.OBJ, and some sample programs.


How to Use the 16-bit Microsoft QuickPascal Language Interface:

I. Overview

The 16-bit GPIB language interface contains the following files:
* QPDECL.PAS: Pascal declaration file
* PIB.OBJ: Pascal language interface module

II. Items to Include in Your GPIB Application

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

{$I QPDECL.PAS}

Next you need to link the PIB.OBJ file to your application. The PIB.OBJ file must NOT be the first file named in the link list when linking with the application program.

III. Note to Microsoft QuickPascal Users about Names

The board or device name must be of type nbuf (array[1..7] of char). nbuf is defined in QPDECL.PAS. Use blanks to pad the name.

Example:

var bdname : nbuf;
bdname := 'gpib0 ';

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

Contributors