Optimize Data Type

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 Help

Use this dialog box to map the channel values of a channel on a smaller data format. Use the Optimize data type function to round channel values in order to get a smaller file for storage. If you round automatically, the optimization runs without significant errors. DIAdem displays the relative rounding error and the amount of storage space saved in the associated dialog box and saves these values in the custom properties of the result channels as ResultOptDataTypeRoundingError and ResultOptDataTypeStorageSavings.

When saving TDM and DAT files, DIAdem can use scaling parameters in order to map the channel values on an integer data type. These parameters are in the variables ChnStartVal and ChnStepWidth, when you execute the functions Optimize file type or Quantize, or if the source data was already saved as a different file type than the default type. If you select Automatic either in the dialog box DIAdem NAVIGATOR Settings or in the dialog box Settings for DIAdem DAT Files, DIAdem tries to save numeric channels in a format that saves the most memory space on the hard drive.

Settings

Channels Specifies the data channels whose values DIAdem rounds.
Round channels automatically Specifies whether DIAdem specifies the rounding settings automatically. When rounding automatically, DIAdem rounds the last significant place mathematically.
Round mathematically

Specifies that DIAdem rounds the channel values mathematically. The following rounding rules apply:

  1. If 0, 1, 2, 3, or 4 follows after the last digit to be retained, DIAdem rounds down.
  2. If 5 (followed by further digits that are not 0), 6, 7, 8, or 9 follow after the last digit to be retained, DIAdem rounds up.
  3. If 5 (or 5 followed by zeros) follows after the last digit to be retained, DIAdem rounds in such a way that the last digit to be retained is an even number.
Truncate decimal places Specifies that DIAdem truncates the channel values that follow the last digit to be retained.
Round down Specifies that DIAdem rounds down the channel values that follow the last digit to be retained.
Round up Specifies that DIAdem rounds up the channel values that follow the last digit to be retained.
Automatic Specifies that DIAdem automatically specifies the number of digits to round. DIAdem rounds the last significant place.
Round to n decimal places Specifies that DIAdem refers the Number of decimal places to the decimal places.
Round to n places Specifies that DIAdem refers the Number of significant figures to all digits.
Number of significant figures / Number of decimal places Specifies how many digits or decimal places DIAdem rounds.
Channel Displays the optimized channel.
Saving Displays in kB how much space the optimized channel saves in contrast to the original channel when you save the channel.
Error Displays the percentage the result channel deviates from the input channel.
Store result in original channel Overwrites the values of the input channels. Do not select this setting if you want to use the input channels again.
If you want to use waveform channels in this dialog box, follow Rule 2.3 for Calculating with Waveform Channels.
To calculate quantity-based in DIAdem, click the Calculate Quantity-Based button on the DIAdem ANALYSIS toolbar. When executing quantity-based calculations, DIAdem checks whether the program can also execute calculations on physical quantities in the same calculation. If DIAdem cannot execute the calculation because the physical quantities are unsuitable, the program displays an error message. Refer to the Help page Calculating Quantity-Based and Non-Quantity-Based in DIAdem for the conditions and rules for quantity-based calculations.

Result

DIAdem generates as many result channels as channels you selected for rounding. DIAdem saves the deviation of the result channels to the input channels as a percentage and the amount of saved storage space in KB as Result~OptDataType~RoundingError and Result~OptDataType~StorageSavings in the result channels.

Script Call

Call SUDDlgShow("Main", ResourceDrv & "AnaChnOptimizeDataType")

ChnOptimizeDataType

WAS THIS ARTICLE HELPFUL?

Not Helpful