北京印刷学院学报
北京印刷學院學報
북경인쇄학원학보
Journal of Beijing Institute of Graphic Communication
2005年
3期
24~27
,共null页
参数化设计 多线程 变速输纸机构
參數化設計 多線程 變速輸紙機構
삼수화설계 다선정 변속수지궤구
parametric design; multithreading; speed change-able sheet-fed mechanism
应用Microsoft visual c++ 6.0编程实现齿轮连杆变速输纸机构基于优化思想的参数化设计时,由于优化算法复杂导致程序在进行优化计算时用户界面呈失去响应的状态.为解决这一问题,采用了多线程的编程技术.在程序的计算模块中开启工作者线程进行计算,而主线程可以继续响应用户的其他操作,通过自定义消息实现工作者线程与主线程的通信,实现了优化计算过程在用户界面上的动态演示.
應用Microsoft visual c++ 6.0編程實現齒輪連桿變速輸紙機構基于優化思想的參數化設計時,由于優化算法複雜導緻程序在進行優化計算時用戶界麵呈失去響應的狀態.為解決這一問題,採用瞭多線程的編程技術.在程序的計算模塊中開啟工作者線程進行計算,而主線程可以繼續響應用戶的其他操作,通過自定義消息實現工作者線程與主線程的通信,實現瞭優化計算過程在用戶界麵上的動態縯示.
응용Microsoft visual c++ 6.0편정실현치륜련간변속수지궤구기우우화사상적삼수화설계시,유우우화산법복잡도치정서재진행우화계산시용호계면정실거향응적상태.위해결저일문제,채용료다선정적편정기술.재정서적계산모괴중개계공작자선정진행계산,이주선정가이계속향응용호적기타조작,통과자정의소식실현공작자선정여주선정적통신,실현료우화계산과정재용호계면상적동태연시.
A multithreading programming method to develop software based Microsoft visual c++ 6.0 is used to solve the problem that the user interface can not respond to the other operation of the user for the complicated optimal algorithm, which is applied to implement the parametric design according to the optimal theory for a kind of speed changeable sheet fed mechanism based on gear-shaft comhinative mechanism. In the calculating module a worker thread is started to carry out the optimal calculation, so the primary thread can respond the other operation of the user. Further more, using the user-defined message to realize the communication between the primary thread and the worker thread, the process of the optimal design calculating can be displayed and update real time on the user interfae.