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 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

Windows ........................................................................................... 4-2
Mac OS X ......................................................................................... 4-4
Linux................................................................................................. 4-5

Choosing How to Use the NI-488.2 API ........................................................ 4-5

Communicating with a Single GPIB Device .................................... 4-5
Using Multiple Interfaces and/or Multiple Devices ......................... 4-6

Checking Status with Global Functions ........................................................................ 4-6

Status Word (Ibsta) ......................................................................................... 4-7
Error Function (Iberr)...................................................................................... 4-8
Count Function (Ibcnt).................................................................................... 4-9

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

Applications That Communicate with a Single GPIB Device ........................ 4-9

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

Applications That Use Multiple Interfaces or Communicate

with Multiple GPIB Devices ........................................................................ 4-11

Items to Include ................................................................................ 4-11
General Program Steps and Examples.............................................. 4-12

Advertising