Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

C++ program cannot link gpib.lib (w/ windecl.h) library

Running NI488.2 (ver 2.6) software on win95. Can link 32 bit object library (gpib-32.obj, w/ decl-32.h) - pgm complies & runs but doens't access the GPIB0. I cannot change version of NI488.2. Is there a 16 bit object library gpib-16.obj ?
0 Kudos
Message 1 of 2
(3,893 Views)
Hello-

If this is a 16-bit DOS program, be sure to Enable DOS support for the GPIB card. Search ni.com for +gpib +dos for more details.

After making sure you have the latest driver from (http://www.ni.com/support/gpib/versions.htm), the first step in determining the functionality of your GPIB card is to run the "Getting Started Wizard" found in Start/Programs/National Instruments/NI-488.2.

If the Getting Started Wizard Fails:
-Read the instructions on that utility.
-If you are using a PCI card, try switching slots.
-In Windows NT, you may want to verify your setup in Control Panel/GPIB. In this dialog, click GPIB0 and click "Board Type". Be sure that the board matches what is installed in your system. If you can't see the serial numbe
r see KB#1N88Q5RM (http://digital.ni.com/public.nsf/websearch?SearchView&Query=1N88Q5RM)
-In other versions of Windows, you should be able to see the GPIB interface in the "Device Manager".

The next step is to communicate with the instrument in the Measurement & Automation Explorer (MAX). In MAX under "Devices and Interfaces" you should be able to find your card. Right-click and do a "Scan for Instruments".

If the scan fails:
-Be sure the instrument is powered on and online.
-Be sure the cable is connected tight and screwed on.
-Try switching cables. Shorter cables are preferred.
-If using multiple instruments, try communicating to one instrument at a time.

Randy Solomonson
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,893 Views)