Section 8: Keithley User Library Tool (KULT)
Model 4200A-SCS Parameter Analyzer Reference Manual
8-24
4200A-901-01 Rev. C / February 2017
Compiling the user module
To compile the user module:
1. Select the
Build
tab at the bottom of the dialog box.
2. In the
Options
menu, click
Compile
. The following occurs:
a. The user module C source-code file is compiled.
b. The KULT Compile dialog box indicates the compilation progress. If there is an error, you may need to
expand the dialog box to view the entire message.
When the KULT Compile message box closes or when you click
Ok
, the Build tab area displays one
of the following messages:
•
If the compilation was successful: No Errors/ Warnings Reported, Compilation was Successful.
•
If the compilation was unsuccessful, the error messages that were displayed in the KULT
Compile message box are also displayed in the Build tab area.
True compilation errors (errors that prevent the user module from compiling) are displayed in red.
Warnings, which disclose suspect code that does not prevent compilation (such as an unused
variable declaration), are displayed in blue.
For example, after you compile the
TwoTonesTwice
user module (with the semicolon error) and click
Ok
in the KULT Compile message box, the build tab area appears as shown below.
Figure 435: Compile error message in the Build tab area
(on page 8-24).
Finding code errors
When you click a compilation-error message that is displayed in the build tab area, KULT highlights
either the line of code where the error occurred or the next line, depending on how the compiler
caught the error. KULT also highlights the error message.