![background image](http://html1.mh-extra.com/html/keithley/kpci-488-lpa/kpci-488-lpa_user-manual_3940953030.webp)
2-4
KPCI-488LPA-900-01 Rev. A / December 2008
Section 2: NI Command Compatible Functions
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Step 2: Include function declarations and constants file (GPIB.BAS)
If it is not already included in the project, add the
GPIB.BAS
file. All NI command compatible function
declarations and constants are contained in this file. These function declarations and constants are
used to develop applications.
Step 3: Design the application interface
Add elements, such as a command button, list box, or text box, etc., on the Visual Basic form used to
design the interface. These elements are standard controls from the Visual Basic Toolbox. To place a
needed control on the form:
1. Select the needed control from the
Toolbox
.
2. Draw the control on the form. Alternatively, to place the default-sized control on the form, click
the form. Use the
Select Objects
tool to reposition or resize controls.
Step 4: Set control properties
Set control properties from the properties list. To view the properties list, select the desired control and
do one of the following:
• Press
F4
• Select the
Properties
command in the
View
menu
or
• Click the
Properties
button on the Toolbar.
Step 5: Write the event codes
The event codes define the action desired when an event occurs. To write the event codes:
1. Double-click the control or form needing event code (the code module will appear).
2. Add new code as needed. All functions that are declared in
GPIB.BAS
can be called to perform
operations (refer to
through
).
Step 6: Run your application
To run the application, either:
• Press
F5
• Select
Start
from the
Run
menu
or
• Click the
Start
icon on the Toolbar