beautypg.com

Modification of the initialization file – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 215

background image

10B. Installation & Configuration

II. SOFTWARE GUIDES - 10. Driver488/W31

II-200

Personal488 User’s Manual, Rev. 3.0

Driver488/W31. The name can then be used to obtain a handle to that device which will be used
by all the Driver488/W31 commands. External device names consist of 1 to 32 characters, and the
first character must be a letter. The remaining characters may be letters, numbers, or underscores
(

_

). External device names are case insensitive; upper and lower case letters are equivalent.

ADC

is the same device as

adc

.

IEEE Bus Address: This is the setting for the IEEE 488 bus address of the board. It will be
checked against all the devices on the bus for conflicts. The IEEE 488 bus address consists of a
primary address from

00

to

30

, and an optional secondary address from

00

to

31

. Where required,

Driver488/W31 accepts a secondary address of

-1

to indicate “NONE.”

Timeout (ms): The time out period is the amount of time that data transfers wait before assuming
that the device does not transfer data. If the time out period elapses while waiting to transfer data,
an error signal occurs. This field is the default timeout for any bus request or action, measured in
milliseconds. If no timeout is desired, the value may be set to zero.

Device Type: This field specifies the type of device represented by the external device name
selected.

Bus Terminators: The IEEE 488 bus terminators specify the characters and/or end-or-identify
(

EOI

) signal that is to be appended to data that is sent to the external device, or mark the end of

data that is received from the external device.

Note:

Because secondary addresses and bus terminators are specified by each handle, it may be
useful to have several different external devices defined for a single IEEE 488 bus device. For
example, separate device handles would be used to communicate with different secondary
addresses within a device. Also, different device handles might be used for communication of
command and status strings (terminated by carriage return/line feed) and for communication
of binary data (terminated by

EOI

).

Note:

If installation or configuration problems exist, refer to “Section IV: Troubleshooting.”

To save your changes to disk, pull down the File menu item and double-click on the Save option. Or to
exit without making any changes, double-click on the Exit option. All changes will be saved in the
directory where you installed Driver488/W31. If at any time you wish to alter your Driver488/W31
configuration, simply rerun

CONFIG

.

Modification of the Initialization File

If instead of using the configuration utility you wish to modify the initialization file directly, (either
using a text editor or from an application program), the following text describes the required contents.

The example initialization file

DRVR488W.INI

provides a default setup with one 16-bit IEEE 488

interface at bus address

21

, and one external device called

WAVE

at bus address

16

. This file can be

modified to define other configurations, as described in the following paragraphs. Fields not described,
should be left as in the example. The order of the fields within the file is significant and should be
preserved. If your application will modify the initialization file, note that per Microsoft
recommendations for future compatibility, it should be accessed only through the

GetPrivateProfileString

and

SetPrivateProfileString

functions.

Refer to the supplied

DRVR488W.INI

while reviewing the following material:

The field labeled “Driver” in each section, is the filename of the driver file for a particular layer of
the driver. This can be just the filename if the driver file is present in the Windows directory or in
the DOS search path, or this can include a full path to the file.

To support multiple IEEE 488 interfaces, duplicate the driver core sections labeled

IEEE_3

,

IEEE_4

, and

IEEE

for each additional interface, changing the names as required to avoid duplicate

names. For instance,

IEEE_3

might be changed to

IEEE2_3

. These names follow the rules given

for device names under

MakeDevice

found in “Section III: Command References” of this manual.

Also, for more information on multiple interfaces, see the last topic “Multiple Interface
Management” in the Sub-Chapter “Installation & Configuration” of Chapter 8.