Chapter 3 gpib explorer (mac os x and linux) – National Instruments NI-488.2 User Manual
Page 5

Contents
vi
ni.com
Chapter 3
GPIB Explorer (Mac OS X and Linux)
Mac OS X........................................................................................................ 3-2
Linux ............................................................................................................... 3-3
Add a New GPIB Interface............................................................................................ 3-4
Delete a GPIB Interface................................................................................................. 3-5
View NI-488.2 Software Version.................................................................................. 3-5
View or Change GPIB Interface Settings...................................................................... 3-6
Access Additional Help and Resources......................................................................... 3-8
Chapter 4
Developing Your NI-488.2 Application
Interactive Instrument Control ...................................................................................... 4-1
Choosing Your Programming Methodology ................................................................. 4-2
Choosing a Method to Access the NI-488.2 Driver........................................ 4-2
Choosing How to Use the NI-488.2 API ........................................................ 4-3
Communicating with a Single GPIB Device .................................... 4-3
Using Multiple Interfaces and/or Multiple Devices ......................... 4-4
Status Word (ibsta).......................................................................................... 4-5
Error Variable (iberr) ...................................................................................... 4-6
Count Variables (ibcnt and ibcntl) .................................................................. 4-6
Applications That Communicate with a Single GPIB Device ........................ 4-7
Items to Include ................................................................................ 4-7
General Program Steps and Examples.............................................. 4-8
Applications That Use Multiple Interfaces or Communicate
Language-Specific Programming Instructions for Windows ........................................ 4-11
Microsoft Visual C/C++ (Version 2.0 or Later) ............................................. 4-11
Borland C/C++ (Version 4.0 or Later)............................................................ 4-12
Visual Basic (Version 4.0 or Later) ................................................................ 4-12