Microsoft visual basic, Microsoft visual basic …… 5-12 – Measurement Computing Personal488 rev.3.0 User Manual

Page 66

Advertising
background image

5-12 Using IEEE 488

04-09-01

Personal488 for Windows 95/98/Me/NT/2000

Microsoft Visual Basic

This section is based on 32-bit Microsoft Visual Basic V4.0, V5.0 and V6.0. The procedure may need
modified for other versions of Visual Basic. If this is the case, refer to Microsoft documentation for the
required changes.

If using earlier versions, such as V1.0, V2.0 or V3.0 then support can only be attained by using the 16-Bit
Driver488/W95 Compatibility Layer (see section below) since these versions of Visual Basic are 16-bit
only. In this case, the Visual Basic support from the Driver488/W31 should be used to develop and build
the application.

Visual Basic language support files and examples are located in:

<InstallDirectory>\IEEE488\Programming Language Support\Example Programs\VB

To begin your first project perform the following:

To use Visual BasicV5.0 - V6.0 with a supplied example:

1.

Launch Visual Basic

2.

From the "New Project" dialog box select the "Existing" tab.

3.

To use Visual Basic support from an existing example then navigate to the Visual Basic project
examples and select the desired project.

If the default settings were accepted during installation the project examples will be located in

C:\Program Files\IEEE488\Programming Language Support\Example Programs\VB

The Visual Basic examples were created using a sub 6.0 version. This results in a message
during the load operation that simply states the file was created using a previous version of
VB. If the file is saved it will be saved in the 6.0 format.

To use Visual Basic V4.0 with a supplied example:

1.

Launch Visual Basic.

2.

From the File menu select Open Project.

3.

Add the Visual Basic header file by navigating to the IEEE 488 Visual Basic project folder. If the

default settings were accepted during installation the project examples will be located at

C:\Program Files\IEEE488\Programming Language Support\Example Programs\VB.

4.

Add IOTIEEE.BAS.

5.

Navigate to the IEEE 488 Visual Basic project folder and select the desired example.

To add IEEE 488 support to a new or existing Visual Basic project:

1.

Launch Visual Basic.

2.

Open a new project.

3.

Include the IOTIEEE.BAS file by selecting Project

Add Module.

4.

Select the “Existing” tab and navigate to the IEEE 488 Visual Basic project folder.

If the default settings were accepted during installation the folder should be located at

C:\Program Files\IEEE488\Programming Language Support\Example Programs\VB.

Advertising
This manual is related to the following products: