You can configure a fixed-point number in a numeric control, constant, or indicator.
After you configure a fixed-point control, constant, or indicator, that object cannot display a number that does not conform to the settings you specify. If the object you configure is an indicator, LabVIEW coerces any input value to the indicator to conform to the fixed-point configuration settings of the indicator.
Configuring Controls
Complete the following steps to configure a fixed-point number in a numeric control.
- Right-click the control and select Properties from the shortcut menu to display the Numeric Properties dialog box.
- On the Data Type page, click the data type icon in the Representation section and select FXP (Fixed-point) from the shortcut menu. The Fixed-Point Configuration section displays default values for the Range and Encoding options.
- (Optional) Complete the following steps to configure the Encoding of the fixed-point number.
- Select Signed or Unsigned to specify whether you want to represent a signed or unsigned number.
- In the Word length field, specify the total number of bits you want to use to represent the value of the fixed-point number.
- In the Integer word length field, specify the number of integer bits you want to use to represent the value of the fixed-point number.
 | Note Specifying Encoding has a lower impact on performance than specifying Range. The performance impact of specifying Range is minimal. However, the performance impact can be significant if you run a VI that coerces values to a desired range on a target such as FPGA. |
- (Optional) Complete the following steps to configure the Range of the fixed-point number.
- In the Minimum field, enter the minimum value to which you want the fixed-point number to conform.
- In the Maximum field, enter the maximum value to which you want the fixed-point number to conform.
- In the Desired delta field, enter the increment between numbers within the Range.
 | Note You cannot configure both Encoding and Range because the settings depend on each other. The settings you configure last are the settings that LabVIEW uses for the fixed-point number. |
- Click the OK button to close the dialog box and apply the configuration settings.
Configuring Constants
Complete the following steps to configure a fixed-point number in a numeric constant.
- Right-click the constant and select Properties from the shortcut menu to display the Numeric Constant Properties dialog box.
- On the Data Type page, remove the checkmark from the Adapt to entered data checkbox.
 | Note When you select Adapt to entered data, LabVIEW displays any value you enter with the shortest possible word length and integer word length. You must remove the checkmark from this checkbox if you want LabVIEW to retain any changes you make to the Fixed-Point Configuration settings. |
- Click the data type icon in the Representation section and select FXP (Fixed-point) from the shortcut menu. The Fixed-Point Configuration section displays default values for the Range and Encoding options.
- (Optional) Complete the following steps to configure the Encoding of the fixed-point number.
- Select Signed or Unsigned to specify whether you want to represent a signed or unsigned number.
- In the Word length field, specify the total number of bits you want to use to represent the value of the fixed-point number.
- In the Integer word length field, specify the number of integer bits you want to use to represent the value of the fixed-point number.
 | Note Specifying Encoding has a lower impact on performance than specifying Range. The performance impact of specifying Range is minimal. However, the performance impact can be significant if you run a VI that coerces values to a desired range on a target such as FPGA. |
- (Optional) Complete the following steps to configure the Range of the fixed-point number.
- In the Minimum field, enter the minimum value to which you want the fixed-point number to conform.
- In the Maximum field, enter the maximum value to which you want the fixed-point number to conform.
- In the Desired delta field, enter the increment between numbers within the Range.
 | Note You cannot configure both Encoding and Range because the settings depend on each other. The settings you configure last are the settings that LabVIEW uses for the fixed-point number. |
- Click the OK button to close the dialog box and apply the configuration settings.
Configuring Indicators
Complete the following steps to configure a fixed-point number in a numeric indicator.
- Right-click the indicator and select Properties from the shortcut menu to display the Numeric Properties dialog box.
- On the Data Type page, click the data type icon in the Representation section and select FXP (Fixed-point) from the shortcut menu. The Fixed-Point Configuration section displays default values for the Range and Encoding options.
- (Optional) Place a checkmark in the Adapt to source checkbox if you want the value to inherit the fixed-point configuration settings of an input fixed-point value. If you select this option, skip to step 6.
- (Optional) Complete the following steps to configure the Range of the fixed-point number.
- In the Minimum field, enter the minimum value to which you want the fixed-point number to conform.
- In the Maximum field, enter the maximum value to which you want the fixed-point number to conform.
- In the Desired delta field, enter the increment between numbers within the Range.
- (Optional) Complete the following steps to configure the Encoding of the fixed-point number.
- Select Signed or Unsigned to specify whether you want to represent a signed or unsigned number.
- In the Word length field, specify the total number of bits you want to use to represent the value of the fixed-point number.
- In the Integer word length field, specify the number of integer bits you want to use to represent the value of the fixed-point number.
 | Note You cannot configure both Encoding and Range because the settings depend on each other. The settings you configure last are the settings that LabVIEW uses for the fixed-point number. |
- Click the OK button to close the dialog box and apply the configuration settings.