检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]重庆理工大学电子信息与自动化学院,重庆400054
出 处:《仪表技术与传感器》2016年第11期67-69,共3页Instrument Technique and Sensor
基 金:重庆市教委科学技术研究项目(kj130833)
摘 要:为保证高速A/D采集的数据在传输给上位机时不丢失,在内存中开辟一段缓冲区,首尾相连,分别设置读、写指针,构成双指针环形缓冲区模型,并设计了数据采集系统软件架构和功能程序。采样程序将A/D结果写入缓冲区,写指针循环加1;主程序从缓冲区读出数据并传输,读指针循环加1。缓冲区被动态循环使用,有效地节省数据存储空间。通过ARM7LPC2148MCU和AD7606 ADC芯片构成数据采集系统硬件:50 kHz双通道同步采集时,环形缓冲区长度为16 Kbyte字,连续采集和传输32 K点不丢失数据,保证了采样速度。实际应用证明:该数据采集系统具有硬件原理简单,软件架构清晰,占用内存小,开放性及可再开发性好等优点。To ensure the data of high speed A/D acquisition isn't lost during transmission to host computer,the dual pointer ring buffer area was setted including a buffer in memory, end to end, two pointers of reading and writing.Software architecture and functional routines of the data acquisition system were designed.Sampling task wrote A/D results to the buffer,write pointer round increased one. Main task read data from the buffer from the buffer, read pointer round increased one. The buffer was repeatedly used which effectively reduce the data storage space.By using the data acquisition system hardware based on ARM7 (LPC2148) MCU and AD7606 ADC, under dual-channel synchronously acquiring 32 K points at 50 kHz sampling rate, the data was without lost when the length of ring buffer is 16 K word, thus ensuring the sampling rate.The practical application proves that the data acquisition system has the advantages of simple hardware principle, scientific and clear of software architecture, Small memory, good openness and exploitability.
分 类 号:TP274[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.147