The article describes the arithmetic of track analyzing in needle dispense control system, and the method is used to development and research of practical production successfully and resolves the problem of corner dispense and uses the multiple thread DLL method to achieve the arithmetic module and package.