EasyManua.ls Logo

LI-COR LI-6800 - Dlg Variables

LI-COR LI-6800
152 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section 7. Step reference
_dlg variables
When you enable Dialog interface information in an ASSIGN or TABLE step, the
system creates a second BP variable based on the Name field. For example, in Figure
7-23 on the previous page, a variable named table is created that points to the con-
trol table, but because there is dialog interface information enabled, a second vari-
able named table_dlg is created that contains that information. This auxiliary
variable is always named for the Name entry, with _dlg appended.
_dlg variables can be accessed and manipulated, just like any other variable. You
could include one in a SHOW statement, for example, to learn its structure. You
can also create them explicitly, if you want to include a information in a Dialog for
a variable that was not created by ASSIGN or TABLE.
To illustrate, the check box configuration in Figure 7-18 on page7-16 is doing this
Python equivalent:
xyz = False
xyz_dlg = {'interface': 1, 'target': 'early', 'label': 'Allow early
matching'}
The drop down configuration in Figure 7-19 on page7-17 is doing this Python equi-
valent:
loc = 'Plot AD157'
loc = 'Plot AD157'
loc_dlg = {'interface': 3, 'values': ('Plot AD157', 'Plot AE200',
'Plot AE201', 'Greenhouse'),
'label': 'Measurement location', 'target': 'loc'}
The edit box configuration in Figure 7-20 on page7-17 is doing this Python equi-
valent:
abc = 4.5
abc_dlg = {'target': 'abc', 'description': 'Your best estimate',
'units': 'cm\u00b2',
'interface': 2, 'label': 'Damaged area', 'checkable': False,
'width': 0}
The checkable version of edit box does this:
abc = {'value': 4.5, 'checked': False}
abc_dlg = {'target': 'abc', 'description': 'Your best estimate',
'units': 'cm\u00b2',
7-20 Using LI-6800 Background Programs

Table of Contents