Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How labview Converts Real Numbers into Bytes
How labview Converts Real Numbers into Bytes
1. First, input the data to be converted into the Value input port of the Convert to Fixed Point function, and set the Data Type parameter to "U 16.0", which will make the output data type 16-bit unsigned integer.

2. Secondly, set the parameters of "Proportional Slope" and "Proportional Intercept" to convert integer values into floating-point values. The settings here need to be determined according to the actual range of data. You can refer to the following formula: floating point value = integer value * proportional slope+proportional intercept.

3. Finally, connect the output data to the subsequent data processing module, and realize labview to convert real numbers into bytes.