Archived: Using Your NI-488.2 Software for DOS/Windows with OS/2 2.X

Publish Date: Feb 20, 2017 | 4 Ratings | 3.00 out of 5 | Print | Submit your review

Overview

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

You can access the NI-488.2 software for DOS and Windows from a DOS or Windows application that is running in an OS/2 DOS or WIN-OS/2 session. This feature is useful if you have applications written for NI-488.2 for DOS and/or NI-488.2 for Windows and you want to run the applications within the OS/2 environment. If you are developing new applications under OS/2, National Instruments recommends that you use the NI-488.2M software for OS/2.

This document describes how to install the NI-488.2 software for DOS and Windows and discusses the limitations that you will encounter when you use the software with OS/2.

1. Installing and Using the NI-488.2 Software for DOS in an OS/2 DOS Session

You use the installation utility that comes with your NI-488.2 for DOS driver to install the software. Complete the following steps to install the software:

1. Open a DOS session and follow the software installation instructions described in the getting started documentation that came with your GPIB board.

2. When the installation utility prompts you for the destination drive, enter the drive where you want o install the NI-488.2 software. When the installation utility prompts you for the boot drive, enter the letter of the disk drive where you installed OS/2. Press <Enter> to install all files from the distribution disk.

3. After installation is completed, the installation utility asks if you want to change your config.sys file.

  • Select Yes to have the installation utility automatically add the device=....\gpib.com statement to the OS/2 config.sys file. You must reboot the system to load the driver into memory. After you reboot the system, the driver is loaded into all DOS sessions.
  • Select No to load the driver manually by changing the DOS property settings. Include the device driver name (with the complete path) in the DOS_DEVICE statement in the DOS property settings. This action loads the driver into specific DOS sessions.


For detailed information on how to change property settings for DOS sessions, refer to the OS/2 Master Help Index under the section DOS and under the subsection settings, changing and saving.

Loading the driver manually gives you more flexibility. You do not need to reboot the system to load the driver and you can load the driver into selected DOS sessions.

You must observe a few restrictions while you are using the NI-488.2 software for DOS from an OS/2 DOS session. You can use only version 2.0 and above of the NI-488.2 software for DOS from an OS/2 DOS session. Because the OS/2 DOS session cannot handle interrupts, you must disable interrupts. OS/2 2.0 cannot handle DMA in the OS/2 DOS mode; therefore, if you have installed OS/2 2.0, you also must disable DMA in the NI-488.2 for DOS driver. OS/2 2.1 can handle DMA under DOS sessions, so you can enable DMA for the NI-488.2 driver. Please notice that these restrictions do not apply to the NI-488.2M for OS/2 driver that runs in an OS/2 session.

Note: You can load the NI-488.2 for DOS driver and the NI-488.2M for OS/2 driver into your system at the same time. However, do not attempt to run multiple GPIB applications that access the same GPIB board simultaneously. If you are using NI-488.2 software for DOS in OS/2 2.0, be sure to use ibconf to disable interrupts and DMA before you use the DOS driver. If you are using OS/2 2.1, be sure to use ibconf to disable interrupts before you use the DOS driver.

Back to Top

2. Installing and Using the NI-488.2 Software for Windows in an OS/2 WIN-OS/2 Session


You use the installation utility that comes with NI-488.2 for Windows to install the software. Complete the following steps to install the software:

1. Open a DOS session and follow the software installation instructions described in the getting started manual that came with your GPIB board.

2. When the installation utility prompts you for the location of your Windows directory, enter y:\os2\mdos\winos2, where y is the letter of your OS/2 boot drive. The gpib.ini and the gpib.dll files are copied to this directory.

3. After all files are copied, the INSTALL program offers to modify SYSTEM.INI so that the correct virtual DMA device is used. Select the version of Windows you are using because the need to modify the SYSTEM.INI file depends on which version of Windows you use and whether you can use DMA.

  • OS/2 version 2.0 uses a modified version of Windows 3.0 but does not work with DMA in the WIN-OS/2 mode. Because DMA is not available, you must choose Don't Touch when the screen prompts you to select the Windows software you are using.
  • OS/2 version 2.1 uses Windows 3.1 and supports DMA. Because DMA is supported, you must choose Win 3.1+ when the screen prompts you to select the Windows software you are using. Neither selection alters your SYSTEM.INI file.

You must observe a few restrictions while you are using the NI-488.2 software for Windows from an OS/2 WIN-OS/2 session. You can use only version 2.0 and above of the NI-488.2 software for Windows from a WIN-OS/2 session. Because the OS/2 WIN-OS/2 session cannot handle interrupts, you must disable interrupts for the NI-488.2 software for Windows. OS/2 2.0 cannot handle DMA in the OS/2 WIN-OS/2 mode; therefore, if you have installed OS/2 2.0, you must disable DMA for the NI-488.2 Windows software. OS/2 2.1 can handle DMA under WIN-OS/2 sessions, so you can use DMA with the NI-488.2 software for Windows. Notice that these restrictions do not apply to the NI-488.2M for OS/2 driver that runs in an OS/2 session.

Note: If you are using NI-488.2 software for Windows in OS/2 2.0, be sure to use wibconf to disable interrupts and DMA before you use the software. If you are using NI-488.2 software for Windows in OS/2 2.1, be sure to use wibconf to disable interrupts before you use the software. When you run wibconf from Windows, you must enter the path name y:/os2/mdos/winos2/gpib.i ni, where y is the letter of the disk drive where you installed OS/2, when you are prompted to indicate the location of the gpib.ini file.

Back to Top

Bookmark & Share


Ratings

Rate this document

Answered Your Question?
Yes No

Submit