摘要
针对轨道监测实验台对数据采集的需求,提出了一种充分运用单片机、MATLAB和数据采集卡的优势进行自动采样与测速的方法;以单片机为核心的下位机捕获光电开关的信号,使用串口通信方式实现下位机与MATLAB编写的上位机程序通信;上位机设定一个与移动载荷速度正相关的采样频率,自动启动数据采集卡对轨道在移动载荷下的应变数据进行采集,同时测量载荷移动的平均速度;几组不同弹射速度下的测试结果表明系统可以使用与弹射速度相关的采样频率采集保存数据;所设计的系统提高了轨道监测实验台数据采集的自动化程度,具有较强的实用性。
According to the data acquisition needs of track monitoring test bench. A method, which takes the advantages of single chip microcomputer, Matlab and data acquisition card, were used in this system. The signal of optoelectronic switch was captured by lower com-puter, which used single chip microcomputer as the core. Serial communication was used in the communication of lower computer and upper computer. The upper computer program was written by Matlab. A sampling frequence, which was positively associated with the velocity of the moving load on the test bench, was setted by the upper computer. The data acquisition function of data acquisition card was triggered by the upper computer automatically to simpling the strain data of the rail under moving load. The average speed of the moving load was ob-tained as well. Testing data acquired from. Several different velocity show that this system can collect and save data with different frequency, which is related to the velocity. This system improve the automation degree of rail monitoring test bench in terms of data acquisition. It also has a certain value of practicability.
出处
《计算机测量与控制》
北大核心
2013年第4期859-861,864,共4页
Computer Measurement &Control
基金
国家自然科学基金(50675230)