Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 rating:
 1 out of 5     Rate this Document

Sample Config.sys File for a PCMCIA-GPIB on a Windows 3.1 System

Hardware: GPIB>>Plug-in Controllers>>PCMCIA-GPIB

Problem:
What does a config.sys file for a PCMCIA-GPIB on a Windows 3.1 system look like?

Solution:
The following is an example of a config.sys and associated autoexec.bat that serves as an example of several things. The file shown is a DOS multi-boot configuration; it will start up with a menu prompting you to choose what configuration that you want to boot into. This is very common on notebooks, and they often have a Mobile and Docked configuration or other configurations as shown below. You should be aware that you may have a multi-boot set up when editing your config.sys file, and the easiest way to check is to reboot your machine. If it goes straight to a DOS prompt, it is not a multi-boot, and if there is a menu, then it is a multi-boot.

The example also shows some files and switches in the typical config.sys file. Shown below are examples for CardWare and CardSoft. The CardWare case actually loads the DOS GPIB driver and does not expect Windows to be loaded, and the CardSoft case does not load the DOS GPIB driver but does expect Windows to be loaded. Notice that there is also a case which loads no CS at all; this case is for Windows. The example shown below is a very common example. If you are unsure of what a file does, you can use the DOS help command to get more information.


Sample config.sys using DOS Multi-boot:

[menu]
menuitem=WIN, Windows
menuitem=CARDWARE, CardWare (use with DOS GPIB)
menuitem=CARDSOFT, CardSoft (use with Windows GPIB)
menudefault=WIN,10

[common]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DOS=HIGH,UMB
FILES=50
BUFFERS=20
LASTDRIVE=Z
STACKS=9,256

[WIN]
DEVICE=EMM386.EXE NOEMS
DEVICEHIGH=C:\WINDOWS\IFSHLP.SYS

[CARDWARE]
DEVICE=EMM386.EXE NOEMS X=CF00-CFFF X=D000-D7FF
DEVICEHIGH=C:\CARDWARE\SSPCIC.EXE
DEVICEHIGH = C:\CARDWARE\PCCS.EXE
DEVICE = C:\CARDWARE\PCRM.EXE /AUTODETECT
DEVICEHIGH = C:\CARDWARE\PCENABLE.EXE
rem DEVICEHIGH = C:\CARDWARE\PCDISK.EXE
DEVICE = c:\PCMGPIB\GPIB.COM

[CARDSOFT]
DEVICE=EMM386.EXE NOEMS X=D000-DFFF
DEVICEHIGH=c:\WINDOWS\IFSHLP.SYS
DEVICEHIGH=C:\CARDSOFT\SSCIRRUS.EXE
DEVICEHIGH=C:\CARDSOFT\CS.EXE
DEVICEHIGH=C:\CARDSOFT\CSALLOC.EXE
rem DEVICEHIGH=C:\CARDSOFT\ATADRV.EXE
rem DEVICEHIGH=C:\CARDSOFT\MTSRAM.EXE
rem DEVICEHIGH=C:\CARDSOFT\MTDDRV.EXE
DEVICEHIGH=C:\CARDSOFT\CARDID.EXE

Sample autoexec.bat for the config.sys above

@ECHO OFF
PROMPT $P$G
SET TEMP=C:\WINDOWS\WIN_TEMP
SET LMOUSE=C:\MOUSE
SET WINPMT=[Win] $P$G
LH C:\MOUSE\MOUSE.EXE
LH C:\WINDOWS\SMARTDRV.EXE /X 2048 128
GOTO %CONFIG%

:WIN
C:\WINDOWS\NET START
PATH C:\WINDOWS;C:\DOS;C:\
WIN
GOTO END

:CARDWARE
PATH C:\DOS;C:\
GOTO END

:CARDSOFT
PATH C:\WINDOWS;C:\DOS;C:\
WIN /N
GOTO END

:END



Related Links:

Attachments:





Report Date: 08/06/2006
Last Updated: 09/11/2006
Document ID: 405JKS5N

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit