Difference between revisions of "Component: Lookup tables (Storage)"

From Flowcode Help
Jump to navigationJump to search
(XML import of components for release)
 
(25 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
+
{| style="width:50%"
 
 
{| width="50%"
 
 
|-
 
|-
| width="20%" style="color: gray;" | Author
+
| width="20%" style="color:gray;" | Author
| [http://www.matrixltd.com Matrix Ltd]
+
| Matrix Ltd
 
|-
 
|-
| width="20%" style="color: gray;" | Version
+
| width="20%" style="color:gray;" | Version
| 1.3
+
| 1.7
 
|-
 
|-
| width="20%" style="color: gray;" | Category
+
| width="20%" style="color:gray;" | Category
 
| Storage
 
| Storage
 
|}
 
|}
  
  
 +
==Lookup tables component==
 +
A lookup-table component allowing an easy way to place arrays of static data into ROM memory. The LUT data is accessed directly allowing very low overhead when collecting the data.
  
==[[File:Component Icon dfb4d07a_3d70_45d5_83ef_07e3c95d86ab.png|Image]] Lookup tables component==
+
==Component Pack==
A lookup-table manager
 
  
This component can be used as a base to create ''child'' components
+
FREE
  
The following components all inherit the traits of Lookup tables:
+
==Detailed description==
  
{| class="wikitable" width="50%"
 
|+|-
 
|[[File:Component Icon aa4dbea0_7355_4171_9e13_171a25555092.png|Image]] [[Component: ID aa4dbea0_7355_4171_9e13_171a25555092|Font 7]]
 
|Font for large memory devices.
 
|-
 
|[[File:Component Icon b31cd4ec_58f7_4b14_a433_fb006c2f5e4f.png|Image]] [[Component: ID b31cd4ec_58f7_4b14_a433_fb006c2f5e4f|Font 6]]
 
|Font for large memory devices.
 
|-
 
|[[File:Component Icon 47f07450_b21e_4c40_8703_d989fc32b4cf.png|Image]] [[Component: ID 47f07450_b21e_4c40_8703_d989fc32b4cf|Font 8]]
 
|Font for large memory devices.
 
|-
 
|[[File:Component Icon 8da13197_c8dd_4bbe_a486_7f418bc8d6da.png|Image]] [[Component: ID 8da13197_c8dd_4bbe_a486_7f418bc8d6da|Font 5]]
 
|Font for large memory devices.
 
|-
 
|[[File:Component Icon 618c63a2_fded_419e_b6ae_f7d94e93e3ab.png|Image]] [[Component: ID 618c63a2_fded_419e_b6ae_f7d94e93e3ab|Font 3]]
 
|Font for large memory devices.
 
|-
 
|[[File:Component Icon ebd2b03d_1f86_419d_ae70_dc344d383885.png|Image]] [[Component: ID ebd2b03d_1f86_419d_ae70_dc344d383885|Font 4]]
 
|Font for large memory devices.
 
|-
 
|[[File:Component Icon 879d2213_b712_4871_957d_b3ef9328eb32.png|Image]] [[Component: ID 879d2213_b712_4871_957d_b3ef9328eb32|Font 9]]
 
|Font for large memory devices.
 
|}
 
  
==Examples==
 
''<span style="color:red;">No additional examples</span>''
 
  
  
==Downloadable macro reference==
 
  
===<span style="font-weight: normal;"><u><tt>GetFloat</tt></u></span>===
 
Gets a float from the LUT
 
  
'''Parameters'''
 
  
:[[Variable Types|UINT]] ''Index''
 
  
  
'''Return value'''
 
  
:[[Variable Types|FLOAT]]
 
  
  
===<span style="font-weight: normal;"><u><tt>GetInt</tt></u></span>===
 
Gets an integer from the LUT
 
  
'''Parameters'''
+
''No detailed description exists yet for this component''
  
:[[Variable Types|UINT]] ''Index''
+
==Examples==
  
  
'''Return value'''
 
  
:[[Variable Types|ULONG]]
 
  
 +
A look up table component is useful when including data into a program which may not be linear and therefore hard to calculate.
  
  
==Simulation macro reference==
+
One example of this is a sine wave or working out a temperature based on the resistance of a thermistor.
  
===<span style="font-weight: normal;"><u><tt>GetFloats</tt></u></span>===
 
Gets the float LUT
 
  
'''Parameters'''
+
For a simple example lets say we want to store a sine wave on board the microcontroller.
  
:[[Variable Types|FLOAT]] ''Dest''
 
  
 +
First of all we use Excel to generate the data for a sine wave to do this we work out the angles in degrees we want to reproduce, then convert the degrees to radians and then generate the Sine wave for the angle. the angle returned will be between -1 and 1 so we need to convert this to fit into the microcontroller's memory. The most efficient way is to store the value as a byte which means scaling up the output to 0 - 255 and removing the real portion of the number to give integer values.
  
'''Return value'''
+
[[File:SineWaveLUT.xlsx]]
  
:''This call does not return a value''
 
  
 +
Then using the file -> Save as menu in Excel we can export the data as a raw .CSV file.
  
===<span style="font-weight: normal;"><u><tt>GetIntCount</tt></u></span>===
+
[[File:SineWaveLUT.csv]]
Gets the number of int LUT entries
 
  
'''Parameters'''
 
  
:''This macro has no parameters''
+
The line in the CSV file we are interested in is the Integer Offset Data. We can then copy and paste this data into the integer property of the look up table component.
  
 +
[[File:LUT.jpg]]
  
'''Return value'''
 
  
:[[Variable Types|UINT]]
+
In this example Flowcode file we display the LUT data onto a graphical LCD display
 +
{{Fcfile|LUT.fcfx|LUT}}
 +
Here is what you should expect to see on the glcd after running the simulation.
  
 +
[[File:LUTdata.jpg]]
  
===<span style="font-weight: normal;"><u><tt>ClearInts</tt></u></span>===
+
==Downloadable macro reference==
Clear all int LUT values
 
  
'''Parameters'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloats'''
 +
|-
 +
| colspan="2" | Gets the float LUT&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
 +
| width="90%" | Dest
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:''This macro has no parameters''
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GenerateCache'''
 +
|-
 +
| colspan="2" | Generates the C code for the arrays so it does not need to be done at compile time&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
'''Return value'''
 
  
:''This call does not return a value''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetIntCount'''
 +
|-
 +
| colspan="2" | Gets the number of int LUT entries &nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
===<span style="font-weight: normal;"><u><tt>GetFloatCount</tt></u></span>===
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
Gets the number of float LUT entries
+
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearInts'''
 +
|-
 +
| colspan="2" | Clear all int LUT values&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
'''Parameters'''
 
  
:''This macro has no parameters''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloatCount'''
 +
|-
 +
| colspan="2" | Gets the number of float LUT entries &nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
'''Return value'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetIntBits'''
 +
|-
 +
| colspan="2" | Gets the number of bits-per-int in the LUT&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:[[Variable Types|UINT]]
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetIntBits'''
 +
|-
 +
| colspan="2" | Sets the size of an int LUT entry&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | Bits
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
===<span style="font-weight: normal;"><u><tt>GetIntBits</tt></u></span>===
 
Gets the number of bits-per-int in the LUT
 
  
'''Parameters'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloatBits'''
 +
|-
 +
| colspan="2" | Gets the number of bits-per-float in the LUT&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:''This macro has no parameters''
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearFloats'''
 +
|-
 +
| colspan="2" | Clear all float LUT values&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
'''Return value'''
 
  
:[[Variable Types|BYTE]]
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloat'''
 +
|-
 +
| colspan="2" | Gets a float from the LUT&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
 +
| width="90%" | Index
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
===<span style="font-weight: normal;"><u><tt>SetIntBits</tt></u></span>===
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
Sets the size of an int LUT entry
+
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetInts'''
 +
|-
 +
| colspan="2" | Gets the int LUT&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
 +
| width="90%" | Dest
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
'''Parameters'''
 
  
:[[Variable Types|BYTE]] ''Bits''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLUTCount'''
 +
|-
 +
| colspan="2" | Gets the number of individual data entries stored in the LUT.&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
'''Return value'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetInt'''
 +
|-
 +
| colspan="2" | Gets an integer from the LUT&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
 +
| width="90%" | Index
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u32-icon.png]] - ULONG
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:''This call does not return a value''
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetFloatBits'''
 +
|-
 +
| colspan="2" | Sets the size of a float LUT entry&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | Bits
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
===<span style="font-weight: normal;"><u><tt>GetFloatBits</tt></u></span>===
 
Gets the number of bits-per-float in the LUT
 
  
'''Parameters'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddInt'''
 +
|-
 +
| colspan="2" | Int to add to the int array &nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
 +
| width="90%" | Value
 +
|-
 +
| colspan="2" | Int to add to the int array&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:''This macro has no parameters''
 
  
 
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
'''Return value'''
+
|-
 
+
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
:[[Variable Types|BYTE]]
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddFloat'''
 
+
|-
 
+
| colspan="2" | Add a float to the floating point LUT&nbsp;
===<span style="font-weight: normal;"><u><tt>ClearFloats</tt></u></span>===
+
|-
Clear all float LUT values
+
|-
 
+
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
'''Parameters'''
+
| width="90%" | Value
 
+
|-
:''This macro has no parameters''
+
| colspan="2" | Floating point values&nbsp;
 
+
|-
 
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
'''Return value'''
+
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
+
|}
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>GetInts</tt></u></span>===
 
Gets the int LUT
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|ULONG]] ''Dest''
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>SetFloatBits</tt></u></span>===
 
Sets the size of a float LUT entry
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''Bits''
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>AddInt</tt></u></span>===
 
Int to add to the int array
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|ULONG]] ''Value''
 
::Int to add to the int array
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>AddFloat</tt></u></span>===
 
Add a float to the floating point LUT
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|FLOAT]] ''Value''
 
::Floating point values
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
  
  
Line 242: Line 323:
  
 
==Property reference==
 
==Property reference==
<span style="font-weight: normal;"><u>Integers</u></span>
 
  
This property is of type ''Multiple lines of text'' and can be referenced with the variable name ''intfixed''.
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
+
|-
''<span style="color:red;">No additional information</span>''
+
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
 
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
 
+
|-
 
+
|-
<span style="font-weight: normal;"><u>Floats</u></span>
+
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 
+
| width="90%" | Storage Type
This property is of type ''Multiple lines of text'' and can be referenced with the variable name ''floatfixed''.
+
|-
 
+
| colspan="2" | Controls the data type stored by the component.&nbsp;
''<span style="color:red;">No additional information</span>''
+
|-
 
+
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 
+
| width="90%" | Storage Sign
 
+
|-
<span style="font-weight: normal;"><u>Embed Into C</u></span>
+
| colspan="2" | Controls if the integer numbers are allowed to be negative. Unsigned = Numbers are positive only. Signed = Numbers can be positive and negative.&nbsp;
 
+
|-
This property is of type ''True or false'' and can be referenced with the variable name ''EmbedIntoC''.
+
| width="10%" align="center" | [[File:Fc9-type-11-icon.png]]
 
+
| width="90%" | Integers
''<span style="color:red;">No additional information</span>''
+
|-
 +
| colspan="2" | Comma seperated integer data which is used to create the C code which is inserted into the ROM.&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]]
 +
| width="90%" | Num Values
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
 +
| width="90%" | Embed Into C
 +
|-
 +
| colspan="2" | Flag to decide if code should be generated to C or not If this is false then the LUT is simulation only &nbsp;
 +
|}

Latest revision as of 17:20, 9 November 2022

Author Matrix Ltd
Version 1.7
Category Storage


Lookup tables component

A lookup-table component allowing an easy way to place arrays of static data into ROM memory. The LUT data is accessed directly allowing very low overhead when collecting the data.

Component Pack

FREE

Detailed description

No detailed description exists yet for this component

Examples

A look up table component is useful when including data into a program which may not be linear and therefore hard to calculate.


One example of this is a sine wave or working out a temperature based on the resistance of a thermistor.


For a simple example lets say we want to store a sine wave on board the microcontroller.


First of all we use Excel to generate the data for a sine wave to do this we work out the angles in degrees we want to reproduce, then convert the degrees to radians and then generate the Sine wave for the angle. the angle returned will be between -1 and 1 so we need to convert this to fit into the microcontroller's memory. The most efficient way is to store the value as a byte which means scaling up the output to 0 - 255 and removing the real portion of the number to give integer values.

File:SineWaveLUT.xlsx


Then using the file -> Save as menu in Excel we can export the data as a raw .CSV file.

File:SineWaveLUT.csv


The line in the CSV file we are interested in is the Integer Offset Data. We can then copy and paste this data into the integer property of the look up table component.

LUT.jpg


In this example Flowcode file we display the LUT data onto a graphical LCD display FC6 Icon.png LUT Here is what you should expect to see on the glcd after running the simulation.

LUTdata.jpg

Downloadable macro reference

Fc9-comp-macro.png GetFloats
Gets the float LUT 
Fc9-f32-icon.png - FLOAT Dest
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GenerateCache
Generates the C code for the arrays so it does not need to be done at compile time 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetIntCount
Gets the number of int LUT entries  
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png ClearInts
Clear all int LUT values 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetFloatCount
Gets the number of float LUT entries  
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png GetIntBits
Gets the number of bits-per-int in the LUT 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png SetIntBits
Sets the size of an int LUT entry 
Fc9-u8-icon.png - BYTE Bits
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetFloatBits
Gets the number of bits-per-float in the LUT 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png ClearFloats
Clear all float LUT values 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetFloat
Gets a float from the LUT 
Fc9-u32-icon.png - ULONG Index
 
Fc9-f32-icon.png - FLOAT Return


Fc9-comp-macro.png GetInts
Gets the int LUT 
Fc9-u32-icon.png - ULONG Dest
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetLUTCount
Gets the number of individual data entries stored in the LUT. 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png GetInt
Gets an integer from the LUT 
Fc9-u32-icon.png - ULONG Index
 
Fc9-u32-icon.png - ULONG Return


Fc9-comp-macro.png SetFloatBits
Sets the size of a float LUT entry 
Fc9-u8-icon.png - BYTE Bits
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png AddInt
Int to add to the int array  
Fc9-u32-icon.png - ULONG Value
Int to add to the int array 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png AddFloat
Add a float to the floating point LUT 
Fc9-f32-icon.png - FLOAT Value
Floating point values 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png Storage Type
Controls the data type stored by the component. 
Fc9-type-16-icon.png Storage Sign
Controls if the integer numbers are allowed to be negative. Unsigned = Numbers are positive only. Signed = Numbers can be positive and negative. 
Fc9-type-11-icon.png Integers
Comma seperated integer data which is used to create the C code which is inserted into the ROM. 
Fc9-type-21-icon.png Num Values
 
Fc9-type-7-icon.png Embed Into C
Flag to decide if code should be generated to C or not If this is false then the LUT is simulation only