作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (14): 221-223. doi: 10.3969/j.issn.1000-3428.2010.14.080

• 工程应用技术与实现 • 上一篇    下一篇

基于RTX51的数据采集系统实现

张国安,蔡文培   

  1. (福建工程学院计算机与信息科学系,福州 350108)
  • 出版日期:2010-07-20 发布日期:2010-07-20
  • 作者简介:张国安(1965-),男,教授、硕士,主研方向:工业控制,分布式计算;蔡文培,讲师、硕士
  • 基金资助:

    福建省自然科学基金资助项目(2006J0196);福建工程学院科研发展基金资助项目(GY-Z0607)

Implementation of Data Collecting System Based on RTX51

ZHANG Guo-an, CAI Wen-pei   

  1. (Department of Computer and Information Science, Fujian University of Technology, Fuzhou 350108)
  • Online:2010-07-20 Published:2010-07-20

摘要:

在分析多任务实时操作系统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

中图分类号: