Download Simplicity 2400 Series Technical data
Transcript
4. Programming Interfaces Giga-tronics 2400/2500 Microwave Synthesizer Series 4.3 Dynamic Link Library (DLL) A DLL is a collection of routines that can be used by applications or other DLLs. A DLL is provided on the CD-ROM that is included with the 2400/2500 Microwave Signal Generator. When you install Automation Xpress from the CD-ROM onto your computer, the DLL is loaded onto your computer. The routines in the DLL can be used in Visual C++, Visual Basic, and other applications. 4.3.1 Adding the DLL to Programming Projects The following procedures describe how to include the DLL into Visual C++ and Visual Basic projects. 4.3.1.1 Add the DLL to a Visual C++ Project Table 6 Step Add the DLL to a Visual C++ Project Action 1. Create a Visual C++ project. 2. Copy GT2400.dll from C:\Program Files\Giga-tronics\AX\bin into your project’s executable folder for run time calls. (e.g. folder named “Debug”) 3. Copy GT2400.lib from C:\Program Files\Giga-tronics\AX\lib into your project. 4. Copy all files from C:\Program Files\Giga-tronics\AX\include into your project. 5. Copy the following line into your application C/C++ files: “#include “GT2400.h” 6. Make DLL function calls as needed from any .cpp files where GT2400.h file is included. 7. Build your application. End of Procedure 4.3.1.2 Add the DLL to a Visual Basic Project Table 7 Step Add the DLL to a Visual Basic Project Action 1. Create a Visual Basic project. 2. Copy GT2400.dll from C:\Program Files\Giga-tronics\AX\bin into your project’s executable folder for run time calls. 3. Copy DLLDeclare.bas from C:\Program Files\Giga-tronics\AX\VBModule to the project folder. 4. Make DLL function calls as needed from any files in the project. 5. Build the application. End of Procedure 10 Programming Manual, Part Number 34783, Rev A, July 2009