Using lookups in the Data Calculator

The Data Calculator can perform lookups on attribute level. The lookup data has to be provided at special lookup ports.


Adding Lookup Ports

To add a lookup port to a Data Calculator component, connect the output port of the data providing component with the Data Calculator component. Or, you can select Add Input Port from the Data Calculator component menu and connect the output port of the data providing component with the new port.

The number of lookup ports is unlimited.


Preparing the lookup data

Each lookup port must have at least two attributes. The first attribute represents the key, all other attributes the return values.

If you need to lookup compound keys you have to concatenate the key values within a preceding component and use the same kind of concatenation on the key expression for the lookup.


Setting general lookup options

You can use the Lookup Options property to configure the lookup. The Enter Property window will display a list of all lookup ports and its current option values.

The properties are:


Building Lookup rules

To set up Lookup rules open the Tabular Tab of the Data Calculator window. If Lookup ports are available an additional Lookup column is displayed.

You must provide the following information for each lookup rule:

Without Lookups, there is no impact on a simulation sequence. With Lookups, all data is read into the Lookup ports before the data at the Main port is processed.