首页 | 本学科首页   官方微博 | 高级检索  
     

在LonWorks网络中使用浮点数据
引用本文:童静,吴柯,王怀兴.在LonWorks网络中使用浮点数据[J].微机发展,2005,15(2):18-20,24.
作者姓名:童静  吴柯  王怀兴
作者单位:武汉理工大学信息工程学院,武汉理工大学信息工程学院,武汉理工大学信息工程学院 湖北武汉430070,湖北武汉430070,湖北武汉430070
摘    要:Neuron C是一种专门为Neuron芯片设计的程序设计语言。它在ANSIC的基础上进行了扩展,是开发LonWorks应用的有力工具。Neuron C不直接支持ANSIC中浮点数的算术和比较运算,但是它提供了一个浮点函数库,从而允许使用符合IEEE754标准的浮点数。文中详细介绍了Neuron C中浮点数据类型的定义、浮点常量的生成方法和浮点函数库的使用。通过一个实例LonWorks网络,演示了浮点数据的使用。

关 键 词:Neuron  C语言  浮点类型  nxt程序  LonPoint模块  Giznao  4板
文章编号:1005-3751(2005)02-0018-03

Using Floating-point Data in LonWorks Networks
TONG Jing,WU Ke,WANG Huai-xing.Using Floating-point Data in LonWorks Networks[J].Microcomputer Development,2005,15(2):18-20,24.
Authors:TONG Jing  WU Ke  WANG Huai-xing
Abstract:Neuron C is a programming language that is designed for Neuron chips.It includes extensions to ANSI C,which make it a powerful tool for the development of LonWorks applications.Neuron C does not directly support the ANSI C arithmetic and comparison operation with floating-point values,however,there is a complete library of functions for floating-point math,which make it possible for using floating-point values according with IEEE 754 single precision format.The definition of floating-point data type,the methods of getting a floating-point constants and the library of functions for floating-point math were introduced in this paper in detail.Through a case LonWorks network,the using of floating-point data was illustrated.
Keywords:
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号