Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Displaying Results in Fractional Notation (Blackfin, Embedded Module)

Because the fract16 and fract32 data types are derived data types, LabVIEW displays results as a 16-bit signed integer numeric or 32-bit signed integer numeric, respectively. It is common to display fractional data in hexadecimal format. Using hexadecimal format does not use additional resources. You also can convert fractional results into floating-point values that you can display more easily. Complete the following steps to convert fractional data into floating-point data.

  1. Wire the fractional data to a Conversion function. To maintain full precision, wire a fract16 value to a single-precision, floating-point indicator. Wire a fract32 value to a double-precision, floating-point indicator.
  2. Divide the floating-point value by 32,768.0 if you are converting fract16 data or divide by 2,147,483,648.0 if you are converting fract32 data.

You also can use the Blackfin Conversion VIs to convert between fractional data and floating-point data.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit