Read-Write Operation on Floating Point Data Program Design Between MCU and KingView

Author(s):  
Congcong Fang ◽  
Xiaojing Yang
2013 ◽  
Vol 462-463 ◽  
pp. 891-895
Author(s):  
Cong Cong Fang ◽  
Xiao Jing Yang

By employing the ASCII type communication protocols between MCU and KingView provided by WellinTech Inc, basing on the analysis of COM port setting and command format of read-write operation between MCU and the KingView, this paper design a read-write operation on floating point data program with C programming language and realize the real-time communication between MCU and KingView successfully, which improved the accuracy and scope of data transmitted between them. Data definition and some key subprograms like serial ports initialization, read floating point data from MCU, write floating point data to MCU are provided in the paper. It has high portability and application value.


Author(s):  
Joseph F. Boudreau ◽  
Eric S. Swanson

Built-in datatypes and C++ classes are introduced in this chapter, and discussed in relation to the important notion of encapsulation, which refers to the separation between the internal representation of the datatype and the operations to which it responds. Encapsulation later becomes an important consideration in the design of custom C++ classes that programmers develop themselves. It is illustrated with built-in floating-point datatypes float and double and with the complex class from the C++ standard library. While a sophisticated programmer is aware of the internal representation of data and its resulting limitations, encapsulation allows one to consider these as details and frees one to think at a higher level of program design. Some simple numerical examples are discussed in the text and in the exercises.


Author(s):  
John P. Wilson

Single-precision floating point data from a simulation of barotropic turbulence is compressed with a wavelet-based method. The quantity being compressed is vorticity. The compression error is evaluated both in terms of error in the vorticity and the error in various quantities derived from the vorticity. Numerical error is evaluated in all quantities and visualizations of the vorticity and correlation of the error with the uncompressed data are evaluated. It is found that depending on the quantities of interest and the evaluation criteria, compression ratios of 4:1 to 256:1 are achievable. Under a conservative definition of acceptable error, it is possible to recover quantities of interest from data compressed 4:1 (8bpp), the data rate that in existing practice is used for visualization.


2017 ◽  
Vol 66 (12) ◽  
pp. 2081-2096 ◽  
Author(s):  
Andrew Anderson ◽  
Servesh Muralidharan ◽  
David Gregg

Sign in / Sign up

Export Citation Format

Share Document