8: Keithley User Library Tool (KULT)  Model 4200A-SCS Parameter Analyzer 
 
8-34  4200A-901-01 Rev. C / February 2017 
 
Tutorial 3: Calling one user module from within another 
KULT allows a user module to call other user modules. A called user module may be in the same 
user library as the calling module or may be in another user library. This section provides a brief 
tutorial that illustrates application of such dependencies. It also illustrates the File > Copy Module 
command. 
In this tutorial, you create a new user module using two user modules that were created in the 
previous tutorials: Tutorial 1: Creating a new user library and user module (on page 8-16) and 
Tutorial 
2: Creating a user module that returns data arrays (on page 8-28): 
•  The VSweep user module in the my_2nd_lib user library, a copy of which is used as the 
dependent user library. 
•  The TwoTonesTwice user module, in the my_1st_lib user library, which is the independent 
user library that will be called by the VSweep user module. 
A copy of the VSweep user module, called VSweepBeep, calls the TwoTonesTwice user module to 
signal the end of execution. 
 
Creating the VSweepBeep user module by copying an existing user module 
Open the Vsweep user module: 
1.  Start KULT. 
2.  Select File > Open Library. 
3.  Select my_2nd_lib from the list. 
4.  Click OK. 
5.  Click File > Open Module. 
6.  Select VSweep.c from the list. 
7.  Click OK.