Abstract:For the realization of the automatic test system of interchangeable instrument, using the Common Building Block(CBB) models, through Dynamic Link Library(DLL) technology, the interchangeable instrument command package library is designed and implemented. The package library bears the characteristics of high-quality, versatility, practicality and scalability and so on. It can achieve the interchanging between different instruments without modifying the automatic test program, and can separate the automated testing procedures from the instrument drivers completely. It is beneficial to the upgrade and migration of automatic testing system, and improves its development efficiency greatly.