beautypg.com

Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 269

background image

10G. Utility Programs

II. SOFTWARE GUIDES - 10. Driver488/W31

II-254

Personal488 User’s Manual, Rev. 3.0

WINTEST Session

Start

WINTEST

. In the

devHandle

field is the table

of preconfigured devices. If
no changes were made to the
factory default, the table
should include

IEEE

and

Wave

. The handle

IEEE

is

always in the device table for
interface-related commands.

As shown in the following
figure, select

Wave

in the

devHandle

field, then click

the OpenName button. The
number in brackets next to the
name

Wave

changes from

-1

to a positive number as the
command is executed and the
device is opened. The complete function call appears in the

Function Call

field and the call also

appears in the executed command list.

In the executed command list, the number to the left in parenthesis, is the value returned by the function
call during execution. Generally, if the command completed successfully, the number is

0

, and if the

command caused an error, the number is

-1

. For more information on the command return values,

refer to the “Section III: Command References” of this manual.

To clear the device named

Wave

, select Clear under the

Bus menu item. Then, create
a new device using the

MakeDevice

command under

the Device menu item. A
dialog box will pop up that
shows the C structure for the
required user input. In this
case, the name of the new
device is required. Fill in the
name and click OK. The
command and the returned
value will now be in the
command list, as shown in the
figure. Your new device now
appears in the

devHandle

field. Select BusAddress
under the Config menu item to
set the address of your newly created device.

As you fill in the pop-up dialog boxes,

WINTEST

uses your input to adjust the parameters in the

function call. These completed syntactically-correct lines of C code can be selected, cut and pasted
into your C editor at any time.

Opening a Device

Creating a New Device