![]() |
|
Interfacing GPIB Add-On Boardsby Shigeo HayashiThis project uses XDS Modula-2 to interface GPIB Add-On Boards Contec API-GPIB(98/PC)W951. Rewrite GpibAc.H to GpibAc.Def You can do it with little difficulty. For a portion of the result, see the codes below.
2. Rewrite SubClass.H to SubClass.DEF and SubClass.MOD The procedures therein are not of great importance. 3. Modify ApiGpib1.Lib xlib /implib /useord ApiGpib1 ApiGpib1.DLL This is necessary because MSVC .LIB files are in COFF format, whereas XDS uses OMF format. National Instruments NI-488.2Direct access to Gpib-32.DLL 1. Rewrite Gpib-32.H Use the H2D utility to create h2d_Gpib_32.DEF using the project file below.
H2D (.h to .def) project file (gpib_32.h2d) !header <*.h> #define __stdcall !end Type in command line: h2d =p Gpib_32.h2d to obtain h2d_gpib_32.DEF 2. Get the run-time control procedures and status variables See an example below.
The author thanks to Dmitry Leskov and Excelsior Support for help. July 23, 2000 - Modified February 4, 2003 |