background image

Chapter 4         Using the GPIB Hardware and Software

© National Instruments Corporation

4-3

CPCI-GPIB/PMC-GPIB for Windows NT

For information about choosing a programming method, developing your
application, or compiling and linking, refer to the NI-488.2M User
Manual for Windows 95 and Windows NT. 
For detailed information about
each NI-488 function and NI-488.2 routine, refer to the NI-488.2M
Function Reference Manual for Win32
.

Running Existing DOS and Windows GPIB Applications

You can run existing DOS and Windows GPIB applications under
Windows NT by using the GPIB Virtual Device Driver, 

gpib-vdd.dll

,

which is included with your NI-488.2M software.

To run DOS GPIB applications, load the special GPIB device driver

gpib-nt.com

 instead of 

gpib.com

, which you normally use with DOS.

When you install the NI-488.2M software, the installation program
copies 

gpib-nt.com

 into a new subdirectory called 

doswin16

. To

use 

gpib-nt.com

, you must modify your 

config.nt

 file to

load 

gpib-nt.com

 whenever a DOS application runs. The 

config.nt

file is located in your 

winnt\system32

 directory, where 

winnt

 is your

Windows NT directory, for example, 

c:\windows

. To load

gpib-nt.com

, add the following line to your 

config.nt

 file:

device=

path\doswin16\gpib-nt.com

where 

path

 is the directory where you installed the GPIB software (the

default installation directory is 

c:\gpib-nt

).

To run 16-bit Windows GPIB applications, the system uses the special
GPIB dynamic link library, 

gpib.dll

. When you install the NI-488.2M

software, the installation program copies 

gpib.dll

 into the

winnt\system32

 directory, where 

winnt

 is your Windows NT

directory, for example 

c:\windows

. As long as 

gpib.dll

 is in your

Windows NT directory, your system automatically accesses 

gpib.dll

whenever you launch a 16-bit Windows GPIB application.

Summary of Contents for CPCI-GPIB

Page 1: ...Getting Started with Your CPCI GPIB or PMC GPIB and the NI 488 2M Software for Windows NT December 1996 Edition Part Number 321384A 01 Copyright 1996 National Instruments Corporation All Rights Reserved ...

Page 2: ...100 Austria 0662 45 79 90 0 Belgium 02 757 00 20 Canada Ontario 905 785 0085 Canada Québec 514 694 8521 Denmark 45 76 26 00 Finland 09 527 2321 France 01 48 14 24 24 Germany 089 741 31 30 Hong Kong 2645 3186 Israel 03 5734815 Italy 02 413091 Japan 03 5472 2970 Korea 02 596 7456 Mexico 5 520 2635 Netherlands 0348 433466 Norway 32 84 84 00 Singapore 2265886 Spain 91 640 0085 Sweden 08 730 49 70 Swit...

Page 3: ...OR INCIDENTAL OR CONSEQUENTIAL DAMAGES EVEN IF ADVISED OF THE POSSIBILITY THEREOF This limitation of the liability of National Instruments will apply regardless of the form of action whether in contract or tort including negligence Any action against National Instruments must be brought within one year after the cause of action accrues National Instruments shall not be liable for any delay in perf...

Page 4: ...al area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense Notices to User Changes or modifications not expressly approved by National Instruments could void the user s authority to operate the equipment under the FCC Rules This device complies with the FCC rules only if used with shielded interface cables of suitable qual...

Page 5: ...n This Manual xi Related Documentation xii Customer Communication xii Chapter 1 Introduction How to Use This Manual 1 1 What You Need to Get Started 1 2 Hardware Description 1 2 Software Description 1 3 Optional Programming Tools 1 3 Chapter 2 Installation and Configuration Install the Hardware 2 1 Install the CPCI GPIB 2 1 Install the PMC GPIB 2 2 Install the Software 2 4 Configure the Software 2...

Page 6: ...stics A 1 Software Transfer Rates A 2 Appendix B Troubleshooting and Common Questions Troubleshooting Diagnostic Utility Failures B 1 Missing Software Components B 1 No GPIB Interfaces Present B 1 GPIB Cables Need To Be Disconnected B 2 Address Resource Conflict B 2 Interrupt Resource Conflict B 2 GPIB Software Problem Encountered B 2 Unknown Problem Encountered B 2 Resolving Resource Conflicts B ...

Page 7: ... 2 2 Figure 2 2 Installing the PMC GPIB 2 3 Figure 2 3 NI 488 2M Software for Windows NT Installation Screen 2 4 Figure 3 1 Diagnostic Utility after Testing 3 2 Tables Table A 1 CPCI GPIB Hardware Characteristics A 1 Table A 2 PMC GPIB Hardware Characteristics A 2 Table A 3 NI 488 2M Software Transfer Rates for the CPCI GPIB and PMC GPIB A 2 ...

Page 8: ...s NT version 3 51 or higher This manual assumes that you are already familiar with the Windows NT operating system How to Use the Manual Set NI 488 2M User Manual for Windows 95 and Windows NT Application Development and Examples NI 488 2M Function Reference Manual for Win32 Function and Routine Descriptions Novice Users Experienced Users Getting Started Manual Installation and Configuration Use t...

Page 9: ...on and Configuration contains instructions to help you configure and install your GPIB hardware and NI 488 2M software Chapter 3 Verifying the Installation describes how to verify the hardware and software installation Chapter 4 Using the GPIB Hardware and Software helps you get started with the NI 488 2M software for Windows NT Appendix A Specifications describes the electrical physical and envir...

Page 10: ...er automatically prints to the screen This font also emphasizes lines of code that are unique from the other examples IEEE 488 and IEEE 488 and IEEE 488 2 refer to the ANSI IEEE Standard IEEE 488 2 488 1 1987 and the ANSI IEEE Standard 488 2 1992 respectively which define the GPIB italic Italic text denotes emphasis a cross reference or an introduction to a key concept This font also denotes text ...

Page 11: ...92 IEEE Standard Codes Formats Protocols and Common Commands Microsoft Windows NT System Guide Microsoft Corporation Customer Communication National Instruments wants to receive your comments on our products and manuals We are interested in the applications you develop with our products and we want to help if you have problems with them To make it easy for you to contact us this manual contains co...

Page 12: ...hardware and the NI 488 2M software How to Use This Manual Gather What You Need to Get Started User Manual and Function Reference Manual Chapter 1 Write Application Program Install the GPIB Hardware Install the GPIB Software Configure the NI 488 2M Software Verify the Installation Yes No Passes Run Interactive Control Utility Review Programming Considerations Troubleshooting Chapter 3 Chapter 4 Ch...

Page 13: ...ete communications and bus management capability The TNT4882C chip on each Plug and Play GPIB board combines the circuitry of the NAT4882 ASIC the Turbo488 ASIC and GPIB transceivers to create a single chip IEEE 488 2 interface The TNT4882C also implements the HS488 high speed protocol which increases the maximum data transfer rate to up to 7 8 Mbytes s depending on the system and the system confi...

Page 14: ...f files refer to the NI 488 2M User Manual for Windows 95 and Windows NT Optional Programming Tools Your kit includes the NI 488 2M software for Windows NT In addition you can order the LabWindows CVI or LabVIEW software from National Instruments LabWindows CVI and LabVIEW include instrument driver libraries that make it easier to communicate with your GPIB instruments LabWindows CVI is an interac...

Page 15: ...from the sequential nature of traditional programming languages and features a graphical programming environment It includes all the tools needed for instrument control data acquisition analysis and presentation LabVIEW also includes an extensive instrument driver library For more information about LabWindows CVI and LabVIEW contact National Instruments ...

Page 16: ...that your system is turned off Keep the system plugged in so that it remains grounded while you install the CPCI GPIB 2 Choose an unused CompactPCI slot in your system For maximum performance the CPCI GPIB has an onboard DMA controller that can only be used if the board is installed in a slot that supports bus arbitration or bus master cards National Instruments recommends installing the CPCI GPIB...

Page 17: ...the Install the Software section later in this chapter Install the PMC GPIB Warning Electrostatic discharge can damage several components on these GPIB boards To avoid such damage in handling your board touch the antistatic plastic package to a metal part of your system chassis before removing the board from the package 1 Make sure that your system is turned off 2 Find an unused PMC slot in your s...

Page 18: ...t might be a tight fit but do not force the board into place Figure 2 2 Installing the PMC GPIB 5 Use the mounting hardware provided to fasten the PMC GPIB to the host 6 Reinstall the host if you removed it to install the PMC GPIB 7 Turn on your system and start Windows NT The PMC GPIB hardware installation is now complete Proceed to the next section Install the Software ...

Page 19: ...s because the program modifies the configuration registry of your system 2 Insert the GPIB Software for Windows NT Setup Disk into an unused drive 3 Windows NT 3 51 Select Run from the File menu in the Program Manager Windows NT 4 0 or higher Select Run from the Start menu Type the following command into the dialog box x setup where x is the letter of the drive containing the distribution disk usu...

Page 20: ...ation utility is an interactive utility you can use to examine or modify the configuration of the driver You must run the GPIB Configuration utility before you can use the NI 488 2M software for Windows NT Follow these steps to run the utility 1 Double click on the GPIB icon in the Control Panel Windows NT 3 51 Open the Control Panel in the Main group of the Program Manager Windows NT 4 0 or highe...

Page 21: ...he online help if you have any questions For more information about GPIB Configuration utility options refer to the NI 488 2M User Manual for Windows 95 and Windows NT 8 Click on the OK button to save your changes After you have installed and configured the software you should verify the installation Continue to the next chapter Chapter 3 Installation Verification ...

Page 22: ...ions to run the Diagnostic utility Windows NT 3 51 Double click on the Diagnostic icon in the NI 488 2M Software for Windows NT group of the Program Manager Windows NT 4 0 or higher Select the Diagnostic item under Start Programs NI 488 2M Software for Windows NT When you have started the Diagnostic utility test your GPIB interfaces by clicking on the Test All button If the Diagnostic utility test...

Page 23: ...u can get details on any of the tested GPIB interfaces by selecting the interface and clicking on the Details button For each failed GPIB interface select it and click on the Details button to get a description of the failure encountered Use that information and the information in Appendix B Troubleshooting and Common Questions to troubleshoot the problem There is also extensive troubleshooting in...

Page 24: ...earn the NI 488 functions and NI 488 2 routines before you write your application Become familiar with the commands of your device Receive data from your GPIB device Troubleshoot problems with your application Follow these instructions to run the Win32 Interactive Control Utility Windows NT 3 51 Double click on the Win32 Interactive Control icon in the NI 488 2M Software for Windows NT group of th...

Page 25: ... NI 488 2M Software for Windows NT group of the Program Manager Windows NT 4 0 or higher Select the GPIB Spy item under Start Programs NI 488 2M Software for Windows NT For more information about the GPIB Spy utility refer to Chapter 5 GPIB Spy Utility in the NI 488 2M User Manual for Windows 95 and Windows NT or use the GPIB Spy context sensitive online help General Programming Considerations As ...

Page 26: ...all the NI 488 2M software the installation program copies gpib nt com into a new subdirectory called doswin16 To use gpib nt com you must modify your config nt file to load gpib nt com whenever a DOS application runs The config nt file is located in your winnt system32 directory where winnt is your Windows NT directory for example c windows To load gpib nt com add the following line to your confi...

Page 27: ...Hardware Characteristics Table A 1 CPCI GPIB Hardware Characteristics Characteristic Specification Dimensions 100 by 160 mm 3 94 by 6 3 in Power Requirement from CompactPCI bus 5 VDC 600 mA typical 800 mA maximum I O Connector IEEE 488 Standard 24 pin Operating Environment Temperature Relative Humidity 0 to 50 C 10 to 90 noncondensing Storage Environment Temperature Relative Humidity 20 to 70 C 5 ...

Page 28: ...um Operating Environment Temperature Relative Humidity 0 to 55 C 10 to 90 noncondensing Storage Environment Temperature Relative Humidity 20 to 70 C 5 to 95 noncondensing EMI FCC Class A Verified Software Transfer Rates Table A 3 NI 488 2M Software Transfer Rates for the CPCI GPIB and PMC GPIB GPIB Hardware Transfer Method Maximum GPIB Transfer Rate CPCI GPIB 3 wire IEEE 488 High Speed HS488 1 5 M...

Page 29: ...this problem reinstall the GPIB Software for Windows NT and run the Diagnostic utility again No GPIB Interfaces Present This error occurs if there are no GPIB interfaces physically present in the system or there is a resource conflict with the interfaces that are installed If you encounter this problem use the GPIB Configuration utility to examine the installed GPIB interfaces and the resources as...

Page 30: ...endix After you have resolved the conflict run the Diagnostic utility again Interrupt Resource Conflict This error occurs if the interrupt resources assigned to a GPIB interface conflict with the interrupt resources that other devices in the system are using To resolve an interrupt resource conflict refer to the Resolving Resource Conflicts section later in this appendix After you have resolved th...

Page 31: ...pt levels and DMA channels that are currently being used in your system Assign resources this utility does not list to your GPIB interface Follow these instructions to run the Windows NT Diagnostics Windows NT 3 51 Double click on the Windows NT Diagnostics icon in the Administrative Tools group of the Program Manager Windows NT 4 0 or higher Select Start Programs Administrative Tools Windows NT D...

Page 32: ...ion Examining the NT System Log Using the Event Viewer If the GPIB Class Driver lines are not present or at least one GPIB Port Driver line is not present the NI 488 2M software is not installed properly You must reinstall the NI 488 2M software Examining the NT System Log Using the Event Viewer Windows NT maintains a system log If the NI 488 2M driver is unable to start it records entries in the ...

Page 33: ...d DMA controller Refer to the Install the CPCI GPIB section in Chapter 2 Installation and Configuration for more information How can I determine which type of GPIB hardware I have installed Run the GPIB Configuration utility To run the utility open your Windows NT Control Panel and select the National Instruments eagle icon How can I determine which version of the NI 488 2M software I have install...

Page 34: ...ostic utility by choosing the Diagnostic item under Start Programs NI 488 2M Software for Windows NT When should I use the Win32 Interactive Control utility You can use the Win32 Interactive Control utility to test and verify instrument communication troubleshoot problems and develop your application For more information refer to Chapter 6 Win32 Interactive Control Utility in the NI 488 2M User Ma...

Page 35: ... with it In most cases NI 488 device level calls are sufficient for communicating with instruments Refer to Chapter 3 Developing Your Application in the NI 488 2M User Manual for Windows 95 and Windows NT for more information Can I use the NI 488 and NI 488 2 calls together in the same application Yes you can mix NI 488 functions and NI 488 2 routines What can I do to check for errors in my GPIB a...

Page 36: ...any time Electronic Services Bulletin Board Support National Instruments has BBS and FTP sites dedicated for 24 hour support with a collection of files and documents to answer most common customer questions From these sites you can also download the latest instrument drivers updates and example programs For recorded instructions on how to use the bulletin board and FTP services and for BBS automat...

Page 37: ...ational Instruments office in your country contact the source from which you purchased your software to obtain support Telephone Fax Australia 02 9874 4100 02 9874 4455 Austria 0662 45 79 90 0 0662 45 79 90 19 Belgium 02 757 00 20 02 757 03 11 Canada Ontario 905 785 0085 905 785 0086 Canada Quebec 514 694 8521 514 694 4399 Denmark 45 76 26 00 45 76 26 02 Finland 09 527 2321 09 502 2930 France 01 4...

Page 38: ... Display adapter ________________ Mouse ____ yes _____ no Other adapters installed _____________________________ Hard disk capacity ________ MB Brand ____________________________________________ Instruments used __________________________________________________________________ National Instruments hardware product model _____________________ Revision ____________ Configuration ___________________...

Page 39: ...nterface Version ____________________________________________ Shield Ground Connected to Logic Ground yes or no __________________________________ Other Products Computer Make and Model ________________________________________________________ Microprocessor __________________________________________________________________ Clock Frequency ___________________________________________________________...

Page 40: ...errors ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ _____________________________________________________________________...

Page 41: ...sius DIP dual inline package DMA direct memory access EISA Extended Industry Standard Architecture EMI electromagnetic interference FCC Federal Communications Commission GPIB General Purpose Interface Bus Hz hertz I O input output IEEE Institute of Electrical and Electronic Engineers in inches ISA Industry Standard Architecture kernel The set of programs in an operating system that implements basi...

Page 42: ...Glossary CPCI GPIB PMC GPIB for Windows NT G 2 National Instruments Corporation RAM random access memory s seconds VDC volts direct current ...

Reviews: