Sign In
Upload
Manuals
Brands
National Instruments Manuals
Computer Hardware
NI-488.2M
National Instruments NI-488.2M Manuals
Manuals and User Guides for National Instruments NI-488.2M. We have
2
National Instruments NI-488.2M manuals available for free PDF download: Software Reference Manual, User Manual
National Instruments NI-488.2M Software Reference Manual (178 pages)
For OS/2
Brand:
National Instruments
| Category:
Computer Hardware
| Size: 0 MB
Table of Contents
Table of Contents
5
About this Manual
11
Organization of this Manual
11
Conventions Used in this Manual
12
How to Use this Manual Set
14
Related Documentation
15
Customer Communication
15
Chapter 1 NI-488.2M Software Description
16
The NI-488.2M Software Package
16
NI-488.2M Driver and Driver Utilities
16
Language Files
17
Example Program Files
17
API-Related Files
18
How the NI-488.2M Software Works with OS/2
19
GPIB Overview
20
The IEEE 488 Standard and GPIB
20
Talkers, Listeners, and Controllers
20
Controller-In-Charge and System Controller
21
Sending Messages Across the GPIB
21
Data Lines
21
Handshake Lines
21
Table 1-1. GPIB Handshake Lines
21
Interface Management Lines
22
Setting up and Configuring Your System
22
Table 1-2. GPIB Interface Management Lines
22
Figure 1-2. Linear and Star System Configuration
23
Controlling more than One Board
24
Figure 1-3. Example of Multiboard System Setup
24
Chapter 2 Application Examples
25
Example 1: Basic Communication
26
Example 2: Clearing and Triggering Devices
28
Example 3: Asynchronous I/O
30
Example 4: End-Of-String Mode
32
Example 5: Service Requests
34
Figure 2-5. Program Flowchart for Example 5
37
Example 6: Basic Communication with IEEE
38
Compliant Devices
38
Figure 2-6. Program Flowchart for Example 6
39
Example 7: Serial Polls Using NI-488.2 Routines
40
Example 8: Parallel Polls
42
Example 9: Non-Controller Example
45
Chapter 3 Developing Your Application
47
Choosing a Programming Method
47
Using the NI-488.2 Language Interface
47
NI-488 Device-Level Functions
48
Using NI-488 Functions: One Device for each Board
48
NI-488 Board-Level Functions
49
Using NI-488.2 Routines: Multiple Boards And/Or Multiple Devices
49
Using the OS/2 API Interface
50
Checking Status with Global Variables
50
Status Word-Ibsta
50
Table 3-1. Status Word (Ibsta) Layout
51
Error Variable-Iberr
52
Count Variables-Ibcnt and Ibcntl
52
Using Ibic to Communicate with Devices
53
Writing Your NI-488 Application
53
Items to Include
53
NI-488 Program Shell
54
Figure 3-1. General Program Shell Using NI-488 Device Functions
54
General Program Steps and Examples
55
Writing Your NI-488.2 Application
59
Items to Include
59
NI-488.2 Program Shell
60
Figure 3-2. General Program Shell Using NI-488.2 Routines
60
General Program Steps and Examples
61
Compiling and Linking Your Program
66
32-Bit C Applications
66
16-Bit C Applications
67
Running Your Application Program
67
Chapter 4 Debugging Your Application
68
Running Ibtest
68
Presence Test of Driver
68
Presence Test of GPIB Board
69
Incorrect Interrupt Level
69
GPIB Cables Connected
69
Debugging with the Global Status Variables
70
Debugging with Ibic
70
GPIB Error Codes
70
Configuration Errors
71
Table 4-1. GPIB Error Codes
71
Reconfiguring the NI-488.2M Software
72
Timing Errors
72
Communication Errors
73
Repeat Addressing
73
Termination Method
73
Chapter 5 Ibic-Interface Bus Interactive Control Utility
74
Overview
74
Starting Ibic
75
Exiting Ibic
75
Ibic Syntax
75
Table 5-1. Syntax for NI-488 Functions in Ibic
76
Table 5-2. Syntax for NI-488.2 Routines in Ibic
78
Adding End-Of-String Characters
82
Status Word Return
82
Error Codes Return
83
Count Return
83
Common NI-488.2 Routines in Ibic
84
Send
84
Receive
85
Common NI-488 Functions in Ibic
86
Ibfind
86
Ibdev
86
Ibwrt
89
Ibrd
90
Auxiliary Functions
91
Table 5-3. Auxiliary Functions in Ibic
91
Set (Select Device or Board)
92
Help (Display Help Information)
93
(Repeat Previous Function)
94
(Turn off Display) and + (Turn on Display)
94
N* (Repeat Function N Times)
95
(Execute Indirect File)
96
Print (Display the ASCII String)
97
Ibic Examples
97
NI-488.2 Routines Example
97
NI-488 Device Functions Example
101
NI-488 Board Functions Example
104
Chapter 6 GPIB Programming Techniques
109
Termination of Data Transfers
109
Waiting for GPIB Conditions
110
Device-Level Calls and Bus Management
110
Serial Polling
111
Service Requests from IEEE 488 Devices
111
Service Requests from IEEE 488.2 Devices
112
Automatic Serial Polling
112
Autopolling and Interrupts
113
Autopolling and the Stuck SRQ State
113
SRQ and Serial Polling with NI-488 Device Functions
114
SRQ and Serial Polling with NI-488.2 Routines
114
Example 1
115
Example 2
116
Parallel Polling
117
Implementing a Parallel Poll
117
Parallel Polling with NI-488.2 Routines
117
Parallel Polling with NI-488 Functions
118
Chapter 7 Ibconf-Interface Bus Configuration Utility
121
Overview
121
Starting Ibconf
121
Levels of Ibconf
122
Input Selection Level
122
Figure 7-1. Input Selection Level of Ibconf
122
Map Level
124
Device Map of the Boards
124
Figure 7-2. Map Level of Ibconf
124
Help
124
Rename
124
(Dis)Connect
126
Edit
126
Exit
126
Description Level
127
Change Characteristics
127
Figure 7-3. Description Level of Ibconf
127
Next Board/Device
127
Help
128
Reset Value
128
Return to Map
128
Output Selection Level
129
Board and Device Configuration Options
129
Figure 7-4. Output Selection Level of Ibconf
129
Primary GPIB Address
130
Secondary GPIB Address
130
Timeout Setting
130
EOS Byte
131
Set EOI with EOS on Write
131
Terminate Read on EOS
131
Type of Compare on EOS
131
Assert REN When SC
132
GPIB-Specific Errors
132
Send EOI at End of Write
132
System Controller
132
Bus Timing
133
Enable Auto Serial Polling
133
Enable CIC Protocol
133
Parallel Poll Duration
133
Base I/O Address
134
DMA Channel
134
Use this GPIB Interface
134
DMA Transfer Mode
135
Enable Repeat Addressing
135
Interrupt Jumper Setting
135
Serial Poll Timeout
135
Default Configurations in Ibconf
136
Exiting Ibconf
137
Table A-1. Status Word (Ibsta) Layout
138
Appendix A Status Word Conditions
139
Table B-1. GPIB Error Codes
143
Appendix B
144
Error Codes and Solutions
144
Appendix C
153
Customer Communication
153
Glossary
158
Index
168
Advertisement
National Instruments NI-488.2M User Manual (155 pages)
Brand:
National Instruments
| Category:
Controller
| Size: 0 MB
Table of Contents
Table of Contents
5
About this Manual
11
How to Use this Manual Set
11
Organization of this Manual
12
Conventions Used in this Manual
13
Customer Communication
14
Related Documentation
14
Chapter 1 Introduction
15
GPIB Overview
15
Talkers, Listeners, and Controllers
15
Controller-In-Charge and System Controller
15
GPIB Addressing
16
Sending Messages Across the GPIB
16
Data Lines
16
Figure 1-1. GPIB Address Bits
16
Handshake Lines
17
Interface Management Lines
17
Table 1-1. GPIB Handshake Lines
17
Table 1-2. GPIB Interface Management Lines
17
Setting up and Configuring Your System
18
Figure 1-2. Linear and Star System Configuration
18
Controlling more than One Board
19
Configuration Requirements
19
Figure 1-3. Example of Multiboard System Setup
19
The NI-488.2M Software Elements
20
NI-488.2M Driver and Driver Utilities
20
DOS and 16-Bit Windows Support Files
21
C Language Files
21
Sample Application Files
21
How the NI-488.2M Software Works with Windows NT
22
Unloading and Reloading the NI-488.2M Driver
23
Figure 1-4. How the NI-488.2M Software Works with Windows NT
23
Application Examples
24
Example 1: Basic Communication
25
Example 2: Clearing and Triggering Devices
27
Example 3: Asynchronous I/O
29
Example 4: End-Of-String Mode
31
Example 5: Service Requests
33
Figure 2-5. Program Flowchart for Example 5
36
Example 6: Basic Communication with IEEE 488.2-Compliant Devices
37
Figure 2-6. Program Flowchart for Example 6
38
Example 7: Serial Polls Using NI-488.2 Routines
39
Example 8: Parallel Polls
41
Example 9: Non-Controller Example
43
Developing Your Application
45
Choosing How to Access the NI-488.2M DLL
45
Choosing between NI-488 Functions and NI-488.2 Routines
45
Using NI-488 Functions: One Device for each Board
46
NI-488 Device Functions
46
NI-488 Board Functions
46
Using NI-488.2 Routines: Multiple Boards And/Or Multiple Devices
47
Checking Status with Global Variables
47
Status Word - Ibsta
47
Table 3-1. Status Word (Ibsta) Layout
48
Error Variable - Iberr
49
Count Variables - Ibcnt and Ibcntl
49
Using Ibic to Communicate with Devices
50
Writing Your NI-488 Application
50
Items to Include
50
NI-488 Program Shell
51
Figure 3-1. General Program Shell Using NI-488 Device Functions
51
General Program Steps and Examples
52
Step 1. Open a Device
52
Step 2. Clear the Device
52
Step 3. Configure the Device
53
Step 4. Trigger the Device
53
Step 5. Wait for the Measurement
53
Step 6. Read the Measurement
54
Step 7. Process the Data
54
Step 8. Place the Device Offline
54
Writing Your NI-488.2 Application
55
Items to Include
55
NI-488.2 Program Shell
56
Figure 3-2. General Program Shell Using NI-488.2 Routines
56
General Program Steps and Examples
57
Step 1. Initialization
57
Step 2. Find All Listeners
57
Step 3. Identify the Instrument
57
Step 4. Initialize the Instrument
58
Step 5. Configure the Instrument
59
Step 6. Trigger the Instrument
59
Step 7. Wait for the Measurement
59
Step 8. Read the Measurement
60
Step 9. Process the Data
60
Step 10. Place the Board Offline
61
Compiling, Linking and Running Your
61
Microsoft Visual C/C
61
Direct Entry with C
61
Microsoft Visual C/C
63
Borland C/C
63
Running Existing DOS and Windows GPIB Applications
64
Debugging Your Application
65
Running the Software Diagnostic Test
65
Presence Test of Driver
65
Examining NT Devices to Verify the NI-488.2M Installation
65
Examining the NT System Log Using the Event Viewer
66
GPIB Cables Connected
66
Running Gpibinfo
67
Debugging with the Global Status Variables
67
Debugging with Ibic
68
GPIB Error Codes
68
Table 4-1. GPIB Error Codes
68
Configuration Errors
69
Timing Errors
69
Communication Errors
69
Repeat Addressing
69
Termination Method
70
Common Questions
70
Ibic-Interface Bus Interactive Control Utility
72
Overview
72
Example Using NI-488 Functions
72
Ibic Syntax
75
Number Syntax
75
String Syntax
76
Address Syntax
76
Ibic Syntax for NI-488 Functions
76
Table 5-1. Syntax for Device-Level NI-488 Functions in Ibic
77
Table 5-2. Syntax for Board-Level NI-488 Functions in Ibic
78
Ibic Syntax for NI-488.2 Routines
79
Table 5-3. Syntax for NI-488.2 Routines in Ibic
79
Status Word
80
Error Information
80
Count
81
Common NI-488 Functions
81
Ibfind
81
Ibdev
81
Ibwrt
83
Ibrd
83
Common NI-488.2 Routines in Ibic
84
Set 488.2
84
Send and Sendlist
84
Receive
84
Auxiliary Functions
85
Set (Udname or 488.2)
85
Table 5-4. Auxiliary Functions in Ibic
85
Help (Display Help Information)
86
(Repeat Previous Function)
86
N* (Repeat Function N Times)
87
(Execute Indirect File)
87
Print (Display the ASCII String)
88
GPIB Programming Techniques
89
Termination of Data Transfers
89
High-Speed Data Transfers (HS488)
90
Enabling HS488
90
System Configuration Effects on HS488
91
Waiting for GPIB Conditions
91
Device-Level Calls and Bus Management
91
Talker/Listener Applications
92
Waiting for Messages from the Controller
92
Using the Event Queue
92
Requesting Service
93
Serial Polling
93
Service Requests from IEEE 488 Devices
93
Service Requests from IEEE 488.2 Devices
93
Automatic Serial Polling
94
Stuck SRQ State
94
Autopolling and Interrupts
95
SRQ and Serial Polling with NI-488 Device Functions
95
SRQ and Serial Polling with NI-488.2 Routines
96
Example 1: Using Findrqs
97
Example 2: Using Allspoll
97
Parallel Polling
98
Implementing a Parallel Poll
98
Parallel Polling with NI-488 Functions
98
Parallel Polling with NI-488.2 Routines
99
Ibconf-Interface Bus Configuration Utility
101
Overview
101
Starting and Exiting Ibconf
101
Board Configuration
102
Figure 7-1. Main Dialog Box in Ibconf
102
Use this Board
103
Figure 7-2. Board Configuration for an AT-GPIB Interface Board
103
Bus Timing
104
Cable Length for High Speed
104
Cancel
104
Help
104
Software
104
Base/Io Address
104
Interrupt Level
105
DMA Channel
105
Use Demand Mode DMA
105
Expanded Board Configuration
105
Figure 7-3. Expanded Board Configuration for an AT-GPIB Board
106
Set EOI with EOS on Write
107
8-Bit EOS Compare
107
Send EOI and End of Write
107
EOS Byte
107
System Controller
107
I/O Timeout
107
Parallel Poll Duration
107
Enable Auto Serial Polling
107
Enable CIC Protocol
108
Assert REN When SC
108
Device Template Configuration
108
Figure 7-4. Device Template Configuration
108
Name
109
Access Board
109
GPIB Secondary Address
109
Terminate Read on EOS
109
Set EOI with EOS on Write
109
8-Bit EOS Compare
109
Send EOI at End of Write
109
EOS Byte
110
I/O Timeout
110
Serial Poll Timeout
110
Repeat Addressing
110
Appendix A Status Word Conditions
111
Table A-1. Status Word Bits
111
Table B-1. GPIB Error Codes
116
Error Codes and Solutions
117
Customer Communication
124
Glossary
129
Index
137
Advertisement
Related Products
National Instruments Deterministic Ethernet Expansion Chassis NI 9144
National Instruments NI 78xxR
National Instruments NI 6711
National Instruments NI 6722
National Instruments NI 6723
National Instruments NI 6733
National Instruments NI 54 Series
National Instruments NI 5431
National Instruments NI TB-2636
National Instruments NI-9238
National Instruments Categories
Control Unit
I/O Systems
Controller
Computer Hardware
Measuring Instruments
More National Instruments Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL