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

Page 5

Advertising
background image

Contents

NI-488.2 User Manual

vi

ni.com

Chapter 3
GPIB Explorer (Mac OS X and Linux)

Starting GPIB Explorer ................................................................................................. 3-2

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

NI-488.2 Online Help ..................................................................................... 3-8
National Instruments GPIB Web Site ............................................................. 3-8

View or Change GPIB-ENET/100 Network Settings ................................................... 3-8

Device Configuration ...................................................................................... 3-9
Update GPIB-ENET/100 Firmware................................................................ 3-9

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

Checking Status with Global Variables......................................................................... 4-4

Status Word (ibsta).......................................................................................... 4-5
Error Variable (iberr) ...................................................................................... 4-6
Count Variables (ibcnt and ibcntl) .................................................................. 4-6

Using Interactive Control to Communicate with Devices............................................. 4-7
Programming Models .................................................................................................... 4-7

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

with Multiple GPIB Devices ........................................................................ 4-9

Items to Include ................................................................................ 4-9
General Program Steps and Examples.............................................. 4-9

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

Advertising