Introduction |
|
xiii | |
PART 1: VISUAL BASIC® AND THE INTEGRATED DEVELOPMENT ENVIRONMENT |
|
1 | (56) |
|
|
2 | (4) |
|
|
3 | (1) |
|
|
3 | (3) |
|
|
6 | (22) |
|
The Menu Bar and Standard Toolbar |
|
|
9 | (1) |
|
The Toolbox and Form Designer |
|
|
10 | (3) |
|
|
13 | (1) |
|
|
14 | (1) |
|
Running, Modifying, and Debugging Applications |
|
|
14 | (3) |
|
A Summary of the Steps for Creating a New Program |
|
|
17 | (1) |
|
|
18 | (1) |
|
|
18 | (1) |
|
Setting Project and Form Properties |
|
|
19 | (2) |
|
|
21 | (1) |
|
Adding Code to Event Procedures |
|
|
21 | (3) |
|
|
24 | (1) |
|
|
25 | (1) |
|
|
25 | (2) |
|
|
27 | (1) |
|
A Review Of The Visual Basic® Language |
|
|
28 | (10) |
|
|
28 | (4) |
|
|
32 | (1) |
|
|
33 | (1) |
|
|
34 | (4) |
|
The Structure Of A Visual Basic® Application |
|
|
38 | (5) |
|
|
38 | (3) |
|
|
41 | (2) |
|
Object-Oriented Programming In Visual Basic® |
|
|
43 | (14) |
|
Object-Oriented Programming |
|
|
43 | (2) |
|
Defining New Classes in Visual Basic+ |
|
|
45 | (5) |
|
Some Useful Objects in VB |
|
|
50 | (2) |
|
Handling Run-Time Errors With On Error and the Err Object |
|
|
52 | (1) |
|
Understanding Collections |
|
|
52 | (2) |
|
|
54 | (2) |
|
|
56 | (1) |
PART 2: DEVICE COMMUNICATIONS |
|
57 | (80) |
|
Introducing The Virtual Instrument |
|
|
58 | (5) |
|
|
63 | (2) |
|
|
63 | (1) |
|
Establishing a DDE Conversation |
|
|
64 | (1) |
|
Using Dynamic Data Exchange In Visual Basic® |
|
|
65 | (18) |
|
Initiating an Automatic Link Mode DDE Conversation with Excel |
|
|
65 | (2) |
|
DDE Links-Types of DDE Conversations |
|
|
67 | (1) |
|
A Manual Link Mode DDE Conversation with Excel |
|
|
68 | (1) |
|
A Notify Link Mode DDE Conversation with Excel |
|
|
68 | (2) |
|
Creating a DDE Source Application |
|
|
70 | (2) |
|
Remotely Executing Commands in a DDE Source Application |
|
|
72 | (3) |
|
|
75 | (1) |
|
DDE-Related Methods and Event Procedures |
|
|
76 | (1) |
|
Communicating with the Virtual Instrument Using DDE |
|
|
76 | (7) |
|
|
83 | (11) |
|
|
83 | (1) |
|
|
84 | (1) |
|
Synchronizing Communications |
|
|
85 | (1) |
|
|
85 | (1) |
|
|
86 | (1) |
|
|
87 | (1) |
|
|
87 | (1) |
|
|
87 | (2) |
|
|
89 | (4) |
|
|
93 | (1) |
|
RS-232 Communication Options Summary |
|
|
93 | (1) |
|
RS-232 Communications In Visual Basic® |
|
|
94 | (9) |
|
The MSComm ActiveX Control |
|
|
94 | (1) |
|
|
94 | (1) |
|
|
94 | (3) |
|
MSComm Properties in More Detail |
|
|
97 | (3) |
|
Building an RS-232 Commander for the Virtual Instrument |
|
|
100 | (3) |
|
|
103 | (10) |
|
|
103 | (1) |
|
|
104 | (1) |
|
Transmission Control Protocol |
|
|
105 | (1) |
|
|
106 | (1) |
|
|
106 | (1) |
|
|
107 | (1) |
|
|
107 | (1) |
|
|
108 | (1) |
|
Windows Sockets (Winsock) |
|
|
108 | (2) |
|
|
110 | (3) |
|
TCP/IP Networking In Visual Basic® |
|
|
113 | (14) |
|
The Winsock ActiveX Control |
|
|
113 | (1) |
|
Winsock Control Properties |
|
|
113 | (1) |
|
|
114 | (1) |
|
|
115 | (1) |
|
Elements of VB TCP/IP Clients and Servers |
|
|
115 | (5) |
|
|
120 | (5) |
|
|
125 | (2) |
|
|
127 | (10) |
|
A File Communications Class |
|
|
127 | (5) |
|
Communicating Through Files |
|
|
132 | (3) |
|
|
135 | (2) |
PART 3: DEVICE CONTROL AND DATA HANDLING |
|
137 | (69) |
|
|
139 | (2) |
|
Multitasking versus Multithreading |
|
|
139 | (1) |
|
|
139 | (2) |
|
Multithreading In Visual Basic® |
|
|
141 | (4) |
|
Apartment-Model Threading |
|
|
141 | (1) |
|
Visual Basic® and the Single Thread |
|
|
141 | (4) |
|
|
145 | (4) |
|
|
145 | (4) |
|
State Machines-Implementing State Diagrams In Visual Basic® |
|
|
149 | (8) |
|
An Implementation of the VI State Diagram |
|
|
149 | (4) |
|
Testing the VI State Machine |
|
|
153 | (4) |
|
Parsing-Understanding Message Content |
|
|
157 | (5) |
|
|
158 | (1) |
|
Lexical Analysis versus Syntactic Analysis |
|
|
158 | (1) |
|
|
158 | (2) |
|
|
160 | (1) |
|
|
161 | (1) |
|
A Visual Basic® Parser Class |
|
|
162 | (15) |
|
|
162 | (1) |
|
How The Parser Class Works |
|
|
163 | (8) |
|
|
171 | (6) |
|
Device Monitoring And Control |
|
|
177 | (6) |
|
Monitoring a Device through Polling |
|
|
178 | (3) |
|
Polling as a ``Background'' Task |
|
|
181 | (1) |
|
Interrupt-Driven Device Monitoring |
|
|
182 | (1) |
|
|
183 | (23) |
|
The Core Input Buffer Processing Procedure |
|
|
183 | (2) |
|
Implementing Device Polling in VB |
|
|
185 | (1) |
|
Device Communications through File Polling |
|
|
185 | (5) |
|
|
190 | (1) |
|
An Event-Driven RS-232 Controller for the VI |
|
|
190 | (9) |
|
Similarities between MSComm and Winsock |
|
|
199 | (2) |
|
An Event-Driven Winsock Controller for the VI |
|
|
201 | (3) |
|
|
204 | (2) |
PART 4: GRAPHICAL INTERFACES AND DATA PRESENTATION |
|
206 | (105) |
|
Scientific Plotting With MSChart |
|
|
207 | (24) |
|
Introducing the MSChart Control |
|
|
207 | (1) |
|
|
208 | (3) |
|
|
211 | (1) |
|
|
211 | (1) |
|
|
212 | (1) |
|
Specifying an MSChart Type |
|
|
213 | (1) |
|
|
213 | (5) |
|
|
218 | (1) |
|
|
219 | (2) |
|
Interactive Features of MSChart |
|
|
221 | (5) |
|
|
226 | (5) |
|
Tabular Data Display And Editing |
|
|
231 | (34) |
|
|
232 | (2) |
|
|
234 | (3) |
|
|
237 | (1) |
|
|
237 | (2) |
|
|
239 | (1) |
|
Creating an Instance of the clsSheet Class |
|
|
240 | (1) |
|
Properties of clsSheet Class |
|
|
241 | (1) |
|
Methods of the clsSheet Class |
|
|
242 | (1) |
|
Events of the clsSheet Class |
|
|
243 | (1) |
|
|
243 | (5) |
|
clsSheet Class Implementation |
|
|
248 | (17) |
|
Visual Basic® Graphics Fundamentals |
|
|
265 | (18) |
|
|
266 | (1) |
|
|
267 | (4) |
|
|
271 | (7) |
|
AutoRedraw, Persistent Graphics, and the Paint Event |
|
|
278 | (1) |
|
|
279 | (4) |
|
|
283 | (13) |
|
A Model for Active Graphic Displays |
|
|
283 | (1) |
|
An Active StripChart Graphic Display Object |
|
|
284 | (5) |
|
An Active GasGauge Graphic Object |
|
|
289 | (7) |
|
Interactive Graphic Displays |
|
|
296 | (15) |
|
An Interactive Knob Graphic Object |
|
|
297 | (5) |
|
An Interactive Thermometer Graphic Object |
|
|
302 | (7) |
|
|
309 | (1) |
|
|
310 | (1) |
APPENDIX A: ASCII CHARACTER SET AND CODE TABLE |
|
311 | (3) |
APPENDIX B: DESCRIPTIONS OF EXAMPLE PROGRAMS |
|
314 | (5) |
APPENDIX C: INSTRUCTIONS FOR BUILDING THE VIRTUAL INSTRUMENT |
|
319 | (26) |
|
|
319 | (18) |
|
Transmission Formats Dialog |
|
|
337 | (3) |
|
Communication Settings Dialog |
|
|
340 | (3) |
|
|
343 | (2) |
Index |
|
345 | |