您好,欢迎访问英斯特力(重庆)仪器有限公司官网!
客服电话:
18702308662
技术文档
您的位置: 首页 > 技术资料 > 技术文档
.
联系我们

英斯特力仪器(重庆)

地址:重庆市北碚区蔡家岗
手机:18702308662

咨询热线18375985662

拉力试验机控制软件设计与实现

发布时间:2022-02-22 14:17:37人气:

     拉力试验机控制软件设计与实现(图1)

     本拉力试验机控制系统属于计算机实时控制系统,其核心在于计算机上试验机控制软件。该软件在Windows平台上利用vC++ MFC进行开发。MFC是微软公司提供的基配奖库,雄版夭量的器面用发相关类,大大简化顶界面新发的过程致使得开发者能够将主要精力集中在问题处理上。下面在界面设计、程序架构分析以及类的设计这三个方面对软件进行分析。

试验机软件功能分析与界面设计

英斯特力仪器是一家集研发、生产及销售于一体的 影像测量仪拉力试验机硬度计 ,探伤仪粗糙度仪测厚仪金相设备厂家, 致力于为客户提供更好的检测仪器。        

 拉力试验机控制软件的设计必须服从拉力试验机需求,与此同时,设计的控制软件界面能够被用户接受,则必须遵循人机界面设计的一般规则。这里首先给出拉力试验机软件主界面,如图2所示。下面叙述拉力试验机控制软件需要实现的功能,然后根据其功能来具体分析界面的设计。

        拉力试验机控制软件的设计必须服从拉力试验机需求,与此同时,设计的控制软件界面能够被用户接受,则必须遵循人机界面设计的一般规则。这里首先给出拉力试验机软件主界面,如图2所示。下面叙述拉力试验机控制软件需要实现的功能,然后根据其功能来具体分析界面的设计。


试验机控制软件功能分析


根据工业现场对拉力试验机功能的要求,可得试验机控制软件必须实现实时监控功能、材料试验功能以及试验总结功能,现具体叙述如下。

1)实时监控功能↓

在进行材料试验时门试骏者雷要清味的查蚕当前材料试验的情况。拉力试验机掠制软件-岐提供两种监控试验的方式,一种是实时数据显示面板,一种是实时曲线显示面板。实时数据显示面板显示试件形变量、承受拉力以及承受拉力最大值信息,实时曲线显示面板显示试件承受拉力-试验时间的曲线信息。通过这两种方式,用户可对当前试验情况有比较清晰的认识。

2)材料试验功能

拉力试验机控制软件一般需要提供手动试验和自动试验两种试验方式。其中,手动试验下,用户可以自己选择拉伸材料的方向和速度。该试验方式比较灵活,也可以用于自动试验之前的拉头位置调整。自动试验方式是在用户设定好试验目标之后,软件可以不在用户干预下自动进行试验。自动试验方式包括两种十分普遍的试验方式:拉伸试验和耐受试验。拉伸试验为多段拉伸,是一种最基本的试验方式。该方式下,用户需要设定每一段的拉伸起始力、结束力以及拉伸时间。耐受试验用于测试材料的可靠性,试验时间一般比较长。该方式下,用户需要设定力加载速率、力保持负荷以及保持时间参数。

3)试验总结功能

试验完成后,用户一般需要记录材料试验相关信息。该软件需要提供的试验总结功能包括实时曲线保存和打印功能、试验报表填写以及打印功能。


试验机控制软件界面设计

在明确了试验机软件需要实现的功能后,需要合理的设计界面。拉力试验机界面设计需要遵循界面友好、信息直观呈现、符合现场操作人员使用习惯、安全性提示以及界面一致性等原则。结合拉力试验机功能和界面设计原则,拉力试验机控制软件主界面设计可如图2所示。

拉力试验机计算机控制软件主界面中包括显示面板实时曲线面板以及材解试验面板。其中,显示面板和实时曲线面板可以直观的将当前材料试验信息呈现给里户。[试监面板处显示的试验方式根据用户在菜单栏-轻制方式中选择的材科试验方式的不同而不同。限于篇幅,这里律细的界面设于使不再给出。

试验机软件架构分析

本拉力试验机控制软件采用多线程技术实现。虽然,多线程比单线程要复杂,但是引入多线程后,可以使得程序模块化更好、程序并发执行,执行效率也更高。用户交互模块单独设置一个线程,也保证了界面操作的流畅。该控制软件需要实现的任务有人机界面交互、材料试验控制、与下位机PLC通信功能等。因此,这里将该试验机控制软件划分为三个线程:界面线程(主线程)、试验控制线程、通信线程。

下面分别对以上三个线程进行介绍:

界面线程:也就是主线程,负责人机交互,实现用户配置、试验监控功能等。该线程是控制线程与通信线程交互的媒介,其承接了控制线程与通信线程。控制线程将控制信息传递给主线程后,主线程生成通信任务,并传递给通信线程。通信线程将与PLC通信返回的数据传递给主线程,主线程利用该数据- -方面进行显示,完成试验监控功能:另- .方面传递给控制线程,进行闭环反馈控制。


The tension test rod control system belongs to the computer real-time support system, its core lies in the control software of the testing machine.  The software is developed on Windows platform using vC++ MFC.  MFC is Microsoft provided by the base of the award library, the male version of the machine surface with hair related classes, greatly simplifies the top interface of the new process so that developers can focus on the problem.  The software is analyzed in the following three aspects: interface design, program architecture analysis and class design.  

 

Testing machine software function analysis and interface design  

 

Tension testing machine control software design must comply with the requirements of tension testing machine, at the same time, the design of the control software interface can be accepted by the user, it must follow the general rules of human-machine interface design.  The main interface of tensile testing machine software is presented here, as shown in Figure 2.  The following description of the tensile testing machine control software needs to achieve the function, and then according to its functions to specific analysis of the interface design.  

 

Tension testing machine control software design must comply with the requirements of tension testing machine, at the same time, the design of the control software interface can be accepted by the user, it must follow the general rules of human-machine interface design.  The main interface of tensile testing machine software is presented here, as shown in Figure 2.  The following description of the tensile testing machine control software needs to achieve the function, and then according to its functions to specific analysis of the interface design.  

 

Testing machine control software function analysis  

According to the functional requirements of the tensile testing machine in the industrial field, the control software of the testing machine must realize the functions of real-time monitoring, material testing and test summary, which are described as follows.  

1) Real-time monitoring function ↓  

In the material test door test jun lei to clear the taste of the silkworm current material test situation.  Tensile testing machine sweep software - to provide two monitoring test methods, one is a real-time data display panel, a real-time curve display panel.  The real-time data display panel displays the specimen shape variable, tensile strength and maximum tensile strength information, while the real-time curve display panel displays the specimen tensile strength - test time curve information.  In these two ways, users can have a clear understanding of the current experimental situation.  

 

2) Material test function  

Tensile testing machine control software generally need to provide manual test and automatic test two test methods.  In manual test, the user can choose the direction and speed of the stretching material.  The test method is flexible and can also be used to adjust the position of puller before automatic test.  The automatic test mode is that after the user sets the test target, the software can carry out the test automatically without user intervention.  Automatic test methods include two very common test methods: tensile test and tolerance test.  Tensile test is the most basic test method for multi-section stretching.  In this mode, the user needs to set the starting force, ending force and stretching time of each stretch.  Tolerance test is used to test the reliability of materials, and the test time is generally long.  In this mode, the user needs to set force loading rate, force holding load and hold time parameters.  

 

3) Test summary function  

After the completion of the test, users generally need to record the material test related information.  The test summary function provided by the software includes real-time curve saving and printing function, test report filling and printing function.  


Testing machine control software interface design  

In the clear testing machine software needs to achieve the function, need a reasonable design interface.  Tensile testing machine interface design needs to follow the principles of friendly interface, intuitive presentation of information, in line with the use of site operators, safety tips and interface consistency.  Combined with the function and interface design principles of the tensile testing machine, the main interface design of the control software of the tensile testing machine can be shown in Figure 2.  

 

Tensile testing machine computer control software main interface includes display panel real-time curve panel and material solution test panel.  Among them, display panel and real-time curve panel can intuitively present the current material test information to the inside.  [The test mode shown on the test panel varies according to the material test mode selected by the user in the menu bar - Lightweight mode. Due to the limitation of space, the detailed interface is not given here.  

 

Software architecture analysis of testing machine  

The tension testing machine control software using multi-thread technology.  Although multithreading is more complex than single threading, the introduction of multithreading can make programs more modular, concurrent execution, and more efficient.  The user interaction module sets a thread separately to ensure the smooth operation of the interface.  The control software needs to realize the tasks of man-machine interface interaction, material test control, and PLC communication with the lower computer, etc.  Therefore, the testing machine control software is divided into three threads: interface thread (main thread), test control thread, communication thread.  

 

The above three threads are introduced as follows:  

Interface thread: that is, the main thread, responsible for human-computer interaction, user configuration, test monitoring, etc.  The thread is the medium of interaction between the control thread and the communication thread, and it takes over the control thread and the communication thread.  After the control thread passes the control information to the main thread, the main thread generates the communication task and passes it to the communication thread.  Communication thread will communicate with PLC returned data to the main thread, the main thread uses the data - - to display, complete the test monitoring function: other -.  The aspect is passed to the control thread for closed-loop feedback control.  


推荐资讯

在线客服
联系方式

热线电话一

18702308662

热线电话二

18375985662

上班时间

周一到周五

二维码
线