New gpib-pc functions – National Instruments GPIB-PC User Manual

Page 87

Advertising
background image

BASICA/QuickBASIC GPIB-PC Function Calls

Section Four A

GPIB-PC User Manual

4A-12

©National Instruments Corp.

New GPIB-PC Functions

Since QuickBASIC Version 4.0 now supports true functions, the
language interface has been expanded to include function versions of
the existing GPIB calls. Here are some important points to be aware of:

All existing subroutines are still available via the

CALL

statement, and existing applications do not require any
changes.

The names of the new functions are identical to the existing
subroutines, except that the second letter of each name has
been changed from

B

to

L

. For example, the subroutine

IBSIC

is now also available as the function

ILSIC

.

GPIB subroutine and function calls may be freely mixed
throughout a program.

The include file

QBDECL4.BAS

contains a complete list of

both subroutine and function declarations, complete with
parameter list specifications to aid in type checking at compile
time. You must include this file in all application programs
using GPIB calls.

In general, the functions behave identically to the subroutines
with the few exceptions noted in the following paragraph. The
description of each subroutine found in the GPIB-PC User
Manual
can be applied to the new functions, except for the
syntax-specific information.

Advertising