Fixed-Point Calibration (16-Bit)

This MotoHawk™ block creates a 16bit fixed point variable.

Block ID

Fixed Point Calibration

Library

MotoHawk_lib/Fixed Point Blocks

Description

This block behaves in simulation like a Constant block, and accepts any Matlab value as its Default Value, including data-typing casts. Engineering Value = (Raw Module Value*Gain)^Exp)+Offset. For more information, see Fixed Point Values and B Numbers.

Block Parameters

Parameter Field Values Comments/Description
Name Alpha-numeric text, single-quote enclosed Name of the variable to be created. Should be unique and C-legal (no special characters, such as spaces, dashes or commas (underscore allowed)
Default Value Numeric Numeric entry or Matlab expression.
Output B Scale Numeric Supply applicable numeric value for "B" - larger B values increase value range and reduce resolution.
Behavior Define type of block behavior.
  Calibration Creates a variable in the calibration space.
Display Creates a volatile (RAM) variable accessible to an instrumentation tool (not available in the calibration).
Calibration NV Creates a NonVolatile variable that is exposed to the calibration.
Display NV Creates a NonVolatile variable that is NOT exposed to the calibration.
Calibration Fixed NV Behavior is similar to Calibration NV and Display NV, but data is stored as Fixed NonVolatile.
Fixed NonVolatile data allows for greater flexibility by permitting the addition of new data items whilst retaining existing data during an application upgrade.
Display Fixed NV
Name Source Use Parameter / Output Wire Name Select method for Name - use either the "Name" field or take the name from Output used.
Read Access Level 0-8 Sets security level 1 lowest, 8 highest, for user access to read value. A setting of zero indicates unsecured access is allowed.
Write Access Level 0-8 Sets security level 1 lowest, 8 highest, for user access to write value. A setting of zero indicates unsecured access is allowed.
Use uploaded calibration values Checkbox enable Enable/disable to use or ignore uploaded values (see Use Uploaded Calibration Values).
View Value as Drop-down list
Sets "Default Value" data type
  Number Numeric value
  Enumeration Enables enumeration - maps to the indicated term in the Enumeration text-entry field.
  Text Text string
Enumeration (Cell String, or Struct) Alpha-numeric text, single-quote enclosed Field enabled when Enumeration is selected under "View Value as." Enter term of defined entity to be mapped. Cell String: A cell array of strings such as {'Off', 'On'} may be used to define the names of enumerated values. In this case, the values start with 0 and increment by one. This is especially useful for defining names for Boolean flags like 'On' and 'Off'. Struct: A Matlab struct array containing a 'name' field, and optionally a 'value' field may be used to define the names and explicitly define the values of an enumerated type. For example: struct('name', {'Off', 'On'}, 'value', {0,1}). If the 'value' field is missing, then the values start with 0 and increment by one, just like with the Cell String format.
Show Vectors As Wide Row/Tall Column Set viewing format for values displayed.
Help Text Alpha-numeric text, single-quote enclosed Enter text to describe block usage per needs.
Units Alpha-numeric text, single-quote enclosed Label text that describes the units of the data as appropriate for the application.
Row Header Enumeration (Cell String, or Struct) Alpha-numeric text, single-quote enclosed Use to identify / locate probe value (see Enumeration) - row header
Column Header Enumeration (Cell String, or Struct) Alpha-numeric text, single-quote enclosed Use to identify / locate probe value (see Enumeration) - column header
Minimum Value Numeric Value Sets lower end of allowable range for value. This can be used to prevent a user from entering an out of range number when calibrating.
Maximum Value Numeric Value Sets higher end of allowable range for value. This can be used to prevent a user from entering an out of bounds range when calibrating.
Precision Numeric value, single-quote enclosed Set the precision of the variable to be displayed in an Instrumentation Tool by entering a value '1.x' where "x" is the number of decimal places requested. Default is two decimal places.
Instrumentation Group Alpha-numeric text, single-quote enclosed Determines Folder name and hierarchy to be used by an Instrumentation Tool. Use "|" character between folder names to delineate subfolder structure.