摘要:
在分析多任务实时操作系统RTX51主要任务处理策略的基础上,设计实现一个基于RTX51的数据采集系统。系统中的数据采集工作和接口设备的管理按其执行顺序被划分为5项任务,任务间的协调通过调用库函数发送信号完成。在用户按键控制下,现场数据经转换后保存,可以显示并传送到上位机存储。给出RTX51提供的接口文件与函数以及实现并行任务和顺序任务的机制。按该机制进行任务调度可以成功实现数据采集功能。
关键词:
RTX51嵌入式操作系统,
数据采集,
并行任务,
顺序任务
Abstract:
On the basis of analyzing the main task processing strategies of multi-task operating system RTX51, this paper designs and implements a data collecting system based on RTX51. According to the executing sequences, the management of data collecting and interface components in the system are divided into five tasks, between which library function calling is used to send signal to coordinate. Under the control of user keys, field data are preserved after converted, and may be displayed and transmitted to supervisory computer memory. The interface files and functions and mechanism for realization of parallel and sequential tasks are presented. Task schedule with the mechanism realizes data collecting.
Key words:
RTX51 embedded operating system,
ata collecting,
parallel task,
sequential task
中图分类号:
张国安, 蔡文培. 基于RTX51的数据采集系统实现[J]. 计算机工程, 2010, 36(14): 221-223.
ZHANG Guo-An, CA Wen-Pei. Implementation of Data Collecting System Based on RTX51[J]. Computer Engineering, 2010, 36(14): 221-223.