When converting floating-point data types in your design to fixed-point, LabVIEW provides fixed-point data type suggestions based on your conversion strategy settings.
Before you convert any data types, you must configure your conversion strategy. Refer to Choosing a Fixed-Point Conversion Strategy for help configuring a conversion strategy.
After you configure your conversion strategy, complete the following steps to convert the floating-point data types on the profiled diagram to fixed-point:
Seed all random number generators throughout your application, including in your testbench.
Seed random number generators, such as Uniform White Noise or Gaussian White Noise by wiring a value greater than 0 to the seed input.
Because you cannot seed Random Number nodes, replace any Random Number nodes with a random number generator from the Signal Generation palette category.
If you do not seed random number generators, the output of the random number generators is different each time you run the testbench, making the comparison of operators within an algorithm across multiple testbench executions misleading.
Run the testbench VI to populate the Type column of the table inside the Convert to Fixed-Point pane with a fixed-point data type suggestion for each object on the diagram based on the strategy settings you specify. LabVIEW projects signal-to-noise ratio (SNR), overflow, and underflow values for each data type suggestion.
You can edit your strategy settings after running the testbench VI to update the table with different suggestions.
Select the objects you want to convert from the table within the Convert to Fixed-Point pane.
Click Convert Using Suggestion to convert each selected object to the respective fixed-point data type suggestion listed in the table. Notice that the values in the table are now out of date.
Run the testbench VI to calculate the actual SNR, overflow, and underflow values between the first testbench execution and the current testbench execution for each profiled object. LabVIEW displays these values in the table.
If the current data types meet your SNR and word length goals, and the fixed-point results sufficiently represent your floating-point results, you can stop the conversion process here. However, if the current data types do not meet your SNR or word length goals, or the fixed-point results do not sufficiently represent your floating-point results, refer to
Refining Converted Fixed-Point Data Types
for help refining the data types to meet your goals.