Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Lookup tables

lookupreadtable

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Returns an interpolated matrix from a file containing a lookup table of design and extracted parameters.

 

Supported Product: INTERCONNECT

 

Syntax

Description

out = lookupreadtable ("filename","table",design,"extracted");

Returns an interpolated matrix from a file containing a lookup table of design and extracted parameters. Parameter table is the name of the lookup table located inside the file, design is a cell containing multiple structures that define the design parameters to search, and extracted is the name of the parameter to be extracted. It will return a matrix that contains multiple columns. The first column is the independent variable. e.g. frequency dependent transmission values.

 

Example

The script below loads the frequency dependent propagation properties of a bent waveguide:

filename = "waveguide.ixml";

table = "waveguide";

 

design = cell(1);

 

#design (input parameters)

 

design{1} = struct;

design{1}.name = "radius";

design{1}.value = 3e-6;

 

w_length = 1e-6;

M=lookupreadtable("waveguide.ixml", "waveguide", design, "Filename" );

 

# set the s-parameter in scripted element

setsparameter("port 2", "port 1", "propagation", M, w_length);

setsparameter("port 1", "port 2", "propagation", M, w_length);

 

where “waveguide.ixml” is a lookup table containing a map between waveguide ‘radius’ and ‘Filename’ containing frequency dependent propagation properties:

<?xml version="1.0" encoding="UTF-8"?>

<lumerical_lookup_table version="1.0" name = "waveguide">

<association>

  <design>

    <value name="radius" type="double">3e-06</value>

  </design>

  <extracted>

    <value name="Filename" type="string">radius_3.txt</value>

  </extracted>

</association>

</lumerical_lookup_table>

 

For example, “radius_3.txt” file contains a matrix with frequency dependent propagation properties

2.315e+14                552.6        2.78        7.071e+07

2.30918e+14        552.7        2.71        7.076e+07

2.30335e+14        543.3        2.73        7.075e+07

2.29753e+14        543.3        2.76        7.076e+07

2.2917e+14                544.7        2.78        7.062e+07

2.28588e+14        545.5        2.72        7.061e+07

2.28006e+14        546.6        2.71        7.064e+07

2.27423e+14        544.2        2.73        7.061e+07

2.26841e+14        533.1        2.74        7.063e+07

2.26258e+14        532.2        2.75        7.069e+07 

 

 

See Also

System level, lookupopen, lookupread, lookupwrite, lookupclose, lookupreadvalue, lookupreadnportsparameter, lookupappend, insert

Copyright Lumerical Inc. | Privacy | Site Map