论文部分内容阅读
目的:为病床控制系统测试平台设计一种能够进行数据采集与运动控制的上位机软件。方法:在Visual C++6.0环境下,利用研华科技提供的开发库,并综合了多线程和双缓冲技术来实现。上位PC机把用户的操作意图转换成控制指令,通过PCI接口传送到下位机板卡PCI1240、PCI1716,下位机驱动步进电机实现对病床的控制或进行实时数据的采集。结果:实现了在循环往复运动中急停按钮的实时响应并解决了曲线显示时屏幕闪烁等问题。该软件在病床控制测试平台上进行了多次应用试验,取得了良好的效果。结论:通过本文方法实现了对康复病床的运动控制,数据采集,数据保存与显示等功能,同运用单片机和普通电机控制病床的方法相比,运动控制更加精确平稳,功能更加完善,达到了设计目的,并已成功的应用在病床控制测试系统中。
Objective: To design a kind of host computer software which can carry on data acquisition and motion control for the bed control system test platform. Methods: In the Visual C + +6.0 environment, using Advantech ’s development library, and integrated multi - threading and double buffering techniques to achieve. The upper PC converts the user’s operation intention into a control instruction, and transmits the PCI1240, PCI1716, and lower-machine-driven stepper motors via the PCI interface to control the bed or collect real-time data. Result: The real-time response of the emergency stop button in the cycle reciprocating movement was solved and the screen flickers like flashing when the curve is displayed. The software in the bed control test platform for multiple application tests, and achieved good results. Conclusion: The method of motion control, data acquisition, data storage and display of rehabilitation bed are realized by this method. Compared with the method of using single-chip microcomputer and general motor to control the hospital bed, the motion control is more precise and stable and the function is more perfect, reaching the design Purpose, and has been successfully used in bed control test system.