LabVIEW编程LabVIEW开发IEEE754转换例程与相关资料
此 VI将单个精度数字转换为二进制 IEEE 754 表示,反之亦然。
LabVIEW 在四舍五入浮点编号时使用IEEE 754标准。IEEE-754 号码的值计算为:符号 * 2指数* 曼蒂萨
该标志存储在位 32 中。指数可以通过减去 127 来从位 24-31 进行计算。曼蒂萨(也称为分数)存储在位 1-23。
此 VI 提供了有关 IEEE 754 二进制值计算方式的见解。。
Convert Between IEEE 754 (Floating Point) and Binary Information - NI Community
Overview
This VI allows you to convert a single precision number to binary IEEE 754 representation and vice versa.
Description
LabVIEW uses the IEEE 754 standard when rounding a floating point number. The value of a IEEE-754 number is computed as: sign * 2exponent * mantissa
The sign is stored in bit 32. The exponent can be computed from bits 24-31 by subtracting 127. The mantissa (also known as fraction) is stored in bits 1-23.
This VI provides insight on how the IEEE 754 binary value is calculated.
Requirements
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
1. Download and open the VI "IEEE 754 Boolean_to_SGL_LV2012_NIVerified"
2. Choose a tab to convert from binary to SGL or vice versa
3. Set your numberor the binary value
4. Run the VI
Additional Notes or References
Block Diagram
Front Panel
*This document has been updated to meet the current required format for the NI Code Exchange**
厂家有提供LabVIEW的例子,根据通讯协议的相关的说明,编写了适合项目的程序。
转换VI如下所示。
LabVIEW、LabVIEW开发、LabVIEW编程、LabVIEW程序
文字内容均在附件Word中,同时上文中提到的例子和资料,均在word中的附件里,可点击下载。登录www.bjcyck.com可以查看更多详细信息。这里只是简略的介绍,有任何关于LabVIEW、LabVIEW开发、LabVIEW编程、LabVIEW程序相关问题,请与我们联系。